Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f8ea10

Browse files
committed
Fix bogus len() call
1 parent ec577d5 commit 5f8ea10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/shelve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def keys(self):
4646
return self.dict.keys()
4747

4848
def __len__(self):
49-
return self.dict.len()
49+
return len(self.dict)
5050

5151
def has_key(self, key):
5252
return self.dict.has_key(key)

0 commit comments

Comments
 (0)