summaryrefslogtreecommitdiff
path: root/django/utils/datastructures.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-18 23:08:51 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-02-18 23:08:51 +0000
commite7b2ad8020aef2941eb477632c4a453e7150202a (patch)
treeec976f91ac073f507f057d202c58db3141d8df76 /django/utils/datastructures.py
parentd69f3ccfdbf4034f76a313a91a78948b46fac553 (diff)
Fixed #6611 -- When copying a SortedDict, make a new copy of the keys list.
Thanks, Jeremy Dunck. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r--django/utils/datastructures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py
index f46b57c151..a2b78a31c5 100644
--- a/django/utils/datastructures.py
+++ b/django/utils/datastructures.py
@@ -145,7 +145,7 @@ class SortedDict(dict):
"""Returns a copy of this object."""
# This way of initializing the copy means it works for subclasses, too.
obj = self.__class__(self)
- obj.keyOrder = self.keyOrder
+ obj.keyOrder = self.keyOrder[:]
return obj
def __repr__(self):