diff options
-rw-r--r-- | Lib/shelve.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shelve.py b/Lib/shelve.py index 18aa905..b05c627 100644 --- a/Lib/shelve.py +++ b/Lib/shelve.py @@ -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) |