mirror of
https://github.com/django/django.git
synced 2025-07-05 10:19:20 +00:00
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
This commit is contained in:
parent
fb8c2306db
commit
84fd6a9f87
@ -51,8 +51,8 @@ class SortedDict(dict):
|
|||||||
if key not in self.keyOrder:
|
if key not in self.keyOrder:
|
||||||
self.keyOrder.append(key)
|
self.keyOrder.append(key)
|
||||||
|
|
||||||
def __delitem__(self, key, value):
|
def __delitem__(self, key):
|
||||||
dict.__delitem__(self, key, value)
|
dict.__delitem__(self, key)
|
||||||
self.keyOrder.remove(key)
|
self.keyOrder.remove(key)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user