Commits

Anonymous committed 9005598

Fix issue #37

Comments (0)

Files changed (1)

pyquery/pyquery.py

     def clone(self):
         """return a copy of nodes
         """
-        self[:] = [deepcopy(tag) for tag in self]
-        return self
+        return PyQuery([deepcopy(tag) for tag in self])
 
     def empty(self):
         """remove nodes content