Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a9b4efc commit 9780247a4c21f36f67ee636482399e306154f0bc @malcolmt malcolmt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/http/
4 django/http/
@@ -171,7 +171,7 @@ def __copy__(self):
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 @@ def setdefault(self, key, default=None):
def copy(self):
"Returns a mutable copy of this object."
- return self.__deepcopy__()
+ return self.__deepcopy__({})
def urlencode(self):
output = []

0 comments on commit 9780247

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