Commits

Gael Pasgrimaud  committed af39b0b Merge
  • Participants
  • Parent commits c148e44, 9005598

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