KeyedDefaultdict: super() already bind to self

Signed-off-by: Celelibi <celelibi@gmail.com>
This commit is contained in:
Celelibi 2020-06-19 01:29:27 +02:00 committed by James Lu
parent 84b73bb89f
commit 6bf66f9e4d
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class KeyedDefaultdict(collections.defaultdict):
def __missing__(self, key):
if self.default_factory is None:
# If there is no default factory, just let defaultdict handle it
super().__missing__(self, key)
super().__missing__(key)
else:
value = self[key] = self.default_factory(key)
return value