Ticket #5183: deepcopy.patch
File deepcopy.patch, 554 bytes (added by , 17 years ago) |
---|
-
django/utils/datastructures.py
70 70 for k in self.keyOrder: 71 71 yield k 72 72 73 def __deepcopy__(self, memo): 74 from copy import deepcopy 75 dc = self.__class__() 76 for k, v in self.items(): 77 dc[k] = deepcopy(v, memo) 78 79 return dc 80 73 81 def items(self): 74 82 return zip(self.keyOrder, self.values()) 75 83