Fix bogus len() call

This commit is contained in:
Guido van Rossum 1996-09-10 17:39:56 +00:00
parent ec577d53a9
commit 5f8ea10bc2
1 changed files with 1 additions and 1 deletions

View 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)