From 5f8ea10bc24be5a02f62d7d8563078f8e4e3e793 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Sep 1996 17:39:56 +0000 Subject: Fix bogus len() call --- Lib/shelve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12