]> granicus.if.org Git - python/commitdiff
Fix bogus len() call
authorGuido van Rossum <guido@python.org>
Tue, 10 Sep 1996 17:39:56 +0000 (17:39 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Sep 1996 17:39:56 +0000 (17:39 +0000)
Lib/shelve.py

index 18aa905a9ada0caa170da77f13fa03ab5858e9b2..b05c627379a71761a6ba6d78df5a86db3650cff6 100644 (file)
@@ -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)