Commits

cpburnz  committed 9005598

Fix issue #37

  • Participants
  • Parent commits 5aced0f

Comments (0)

Files changed (1)

File 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