Removed an unnecessary default argument in one __deepcopy__() method and fixed
up the one place that was mistakenly relying on that. Refs #6308. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a9b4efc82b
commit
9780247a4c
|
@ -171,7 +171,7 @@ class QueryDict(MultiValueDict):
|
||||||
dict.__setitem__(result, key, value)
|
dict.__setitem__(result, key, value)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def __deepcopy__(self, memo={}):
|
def __deepcopy__(self, memo):
|
||||||
import copy
|
import copy
|
||||||
result = self.__class__('', mutable=True)
|
result = self.__class__('', mutable=True)
|
||||||
memo[id(self)] = result
|
memo[id(self)] = result
|
||||||
|
@ -223,7 +223,7 @@ class QueryDict(MultiValueDict):
|
||||||
|
|
||||||
def copy(self):
|
def copy(self):
|
||||||
"Returns a mutable copy of this object."
|
"Returns a mutable copy of this object."
|
||||||
return self.__deepcopy__()
|
return self.__deepcopy__({})
|
||||||
|
|
||||||
def urlencode(self):
|
def urlencode(self):
|
||||||
output = []
|
output = []
|
||||||
|
|
Loading…
Reference in New Issue