summaryrefslogtreecommitdiff
path: root/Lib/weakref.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r--Lib/weakref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py
index cf950baef7..1d21e79886 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -41,7 +41,7 @@ class WeakValueDictionary(UserDict.UserDict):
# way in).
def __getitem__(self, key):
- o = self.data.get(key)()
+ o = self.data[key]()
if o is None:
raise KeyError, key
else: