From 84fd6a9f872efba6e0c7440dca705a497bd8e618 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Fri, 28 Apr 2006 19:45:12 +0000 Subject: [PATCH] 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 --- django/utils/datastructures.py | 4 ++-- 1 file 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):