diff options
author | Georg Brandl <georg@python.org> | 2005-06-04 09:20:03 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-06-04 09:20:03 +0000 |
commit | f0e0be874d2281b9934de15ba1a08736e5e72db3 (patch) | |
tree | 1048c87de1493e2781b7b30c3fc4f62bd4e57c91 /Lib/weakref.py | |
parent | 3af8d69f8fb35221e0c9b71a653098c35fe19b29 (diff) | |
download | cpython-f0e0be874d2281b9934de15ba1a08736e5e72db3.tar.gz |
Bug #1196315: fix weakref.WeakValueDictionary constructor.
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r-- | Lib/weakref.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py index c0669b0317..09bd0bee24 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -43,12 +43,12 @@ class WeakValueDictionary(UserDict.UserDict): # way in). def __init__(self, *args, **kw): - UserDict.UserDict.__init__(self, *args, **kw) def remove(wr, selfref=ref(self)): self = selfref() if self is not None: del self.data[wr.key] self._remove = remove + UserDict.UserDict.__init__(self, *args, **kw) def __getitem__(self, key): o = self.data[key]() |