Ticket #13572: querydict-copy-encoding-fix.patch
File querydict-copy-encoding-fix.patch, 910 bytes (added by , 14 years ago) |
---|
-
django/http/__init__.py
177 177 super(QueryDict, self).__delitem__(key) 178 178 179 179 def __copy__(self): 180 result = self.__class__('', mutable=True )180 result = self.__class__('', mutable=True, encoding=self.encoding) 181 181 for key, value in dict.items(self): 182 182 dict.__setitem__(result, key, value) 183 183 return result 184 184 185 185 def __deepcopy__(self, memo): 186 186 import django.utils.copycompat as copy 187 result = self.__class__('', mutable=True )187 result = self.__class__('', mutable=True, encoding=self.encoding) 188 188 memo[id(self)] = result 189 189 for key, value in dict.items(self): 190 190 dict.__setitem__(result, copy.deepcopy(key, memo), copy.deepcopy(value, memo))