diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-02-27 07:58:00 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-02-27 07:58:00 +0000 |
| commit | 9780247a4c21f36f67ee636482399e306154f0bc (patch) | |
| tree | 1c771fe92db0630a042d47e5e9cdd356b81af706 | |
| parent | a9b4efc82b23383038fed6da6ba97242aece27c1 (diff) | |
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
| -rw-r--r-- | django/http/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py index 69e9d51204..7a85e20515 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -171,7 +171,7 @@ class QueryDict(MultiValueDict): dict.__setitem__(result, key, value) return result - def __deepcopy__(self, memo={}): + def __deepcopy__(self, memo): import copy result = self.__class__('', mutable=True) memo[id(self)] = result @@ -223,7 +223,7 @@ class QueryDict(MultiValueDict): def copy(self): "Returns a mutable copy of this object." - return self.__deepcopy__() + return self.__deepcopy__({}) def urlencode(self): output = [] |
