summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-10 17:39:56 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-10 17:39:56 (GMT)
commit5f8ea10bc24be5a02f62d7d8563078f8e4e3e793 (patch)
treea81b34510b7e22428ec8e4d7997243010a5234e0 /Lib
parentec577d53a989efd96dd2d43d2f749ff92a5e4e8d (diff)
downloadcpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.zip
cpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.tar.gz
cpython-5f8ea10bc24be5a02f62d7d8563078f8e4e3e793.tar.bz2
Fix bogus len() call
Diffstat (limited to 'Lib')
-rw-r--r--Lib/shelve.py2
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)