mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix bogus len() call
This commit is contained in:
parent
ec577d53a9
commit
5f8ea10bc2
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Shelf:
|
|||
return self.dict.keys()
|
||||
|
||||
def __len__(self):
|
||||
return self.dict.len()
|
||||
return len(self.dict)
|
||||
|
||||
def has_key(self, key):
|
||||
return self.dict.has_key(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue