diff options
author | Guido van Rossum <guido@python.org> | 1996-09-10 17:39:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-10 17:39:56 (GMT) |
commit | 5f8ea10bc24be5a02f62d7d8563078f8e4e3e793 (patch) | |
tree | a81b34510b7e22428ec8e4d7997243010a5234e0 /Lib/shelve.py | |
parent | ec577d53a989efd96dd2d43d2f749ff92a5e4e8d (diff) | |
download | cpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.zip cpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.tar.gz cpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.tar.bz2 |
Fix bogus len() call
Diffstat (limited to 'Lib/shelve.py')
-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) |