Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…uctures

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 643c7b23a99ef51ff485373478113e4a6c0e4969 1 parent 066dac1
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/utils/datastructures.py
3  django/utils/datastructures.py
View
@@ -124,8 +124,9 @@ def __setitem__(self, key, value):
def __copy__(self):
return self.__class__(dict.items(self))
- def __deepcopy__(self, memo):
+ def __deepcopy__(self, memo=None):
import copy
+ if memo is None: memo = {}
result = self.__class__()
memo[id(self)] = result
for key, value in dict.items(self):
Please sign in to comment.
Something went wrong with that request. Please try again.