1
0
mirror of https://github.com/django/django.git synced 2024-12-27 03:25:58 +00:00

Fixed #2079 -- Fixed bug introduced in [3070] in django.utils.datastructures

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-05 00:46:18 +00:00
parent 066dac168d
commit 643c7b23a9

View File

@ -124,8 +124,9 @@ class MultiValueDict(dict):
def __copy__(self): def __copy__(self):
return self.__class__(dict.items(self)) return self.__class__(dict.items(self))
def __deepcopy__(self, memo): def __deepcopy__(self, memo=None):
import copy import copy
if memo is None: memo = {}
result = self.__class__() result = self.__class__()
memo[id(self)] = result memo[id(self)] = result
for key, value in dict.items(self): for key, value in dict.items(self):