MutableDict.__delitem__ should require only 'key' argument

This commit is contained in:
Audrius Kažukauskas
2013-01-17 12:35:51 +02:00
parent 2244c3febe
commit df7075ca04
+2 -2
View File
@@ -611,9 +611,9 @@ class MutableDict(Mutable, dict):
dict.__setitem__(self, key, value)
self.changed()
def __delitem__(self, key, value):
def __delitem__(self, key):
"""Detect dictionary del events and emit change events."""
dict.__delitem__(self, key, value)
dict.__delitem__(self, key)
self.changed()
@classmethod