summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2006-04-28 19:45:12 +0000
committerLuke Plant <L.Plant.98@cantab.net>2006-04-28 19:45:12 +0000
commit84fd6a9f872efba6e0c7440dca705a497bd8e618 (patch)
tree031c000fe6bb56ef0ce24322379a2b4c58f353a4
parentfb8c2306db64f84f77a4fbf76c29d0109467d9a9 (diff)
downloaddjango-84fd6a9f872efba6e0c7440dca705a497bd8e618.tar.gz
magic-removal: Fixed __delitem__ bug with SortedDict (thanks pychecker!)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/utils/datastructures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py
index 99e1c50356..bc8fb07ef5 100644
--- a/django/utils/datastructures.py
+++ b/django/utils/datastructures.py
@@ -51,8 +51,8 @@ class SortedDict(dict):
if key not in self.keyOrder:
self.keyOrder.append(key)
- def __delitem__(self, key, value):
- dict.__delitem__(self, key, value)
+ def __delitem__(self, key):
+ dict.__delitem__(self, key)
self.keyOrder.remove(key)
def __iter__(self):