Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 9780247a4c21f36f67ee636482399e306154f0bc 1 parent a9b4efc
Malcolm Tredinnick authored February 27, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/http/__init__.py
4  django/http/__init__.py
@@ -171,7 +171,7 @@ def __copy__(self):
171 171
             dict.__setitem__(result, key, value)
172 172
         return result
173 173
 
174  
-    def __deepcopy__(self, memo={}):
  174
+    def __deepcopy__(self, memo):
175 175
         import copy
176 176
         result = self.__class__('', mutable=True)
177 177
         memo[id(self)] = result
@@ -223,7 +223,7 @@ def setdefault(self, key, default=None):
223 223
 
224 224
     def copy(self):
225 225
         "Returns a mutable copy of this object."
226  
-        return self.__deepcopy__()
  226
+        return self.__deepcopy__({})
227 227
 
228 228
     def urlencode(self):
229 229
         output = []

0 notes on commit 9780247

Please sign in to comment.
Something went wrong with that request. Please try again.