File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ class WeakValueDictionary(UserDict.UserDict):
4343 # way in).
4444
4545 def __init__ (self , * args , ** kw ):
46- UserDict .UserDict .__init__ (self , * args , ** kw )
4746 def remove (wr , selfref = ref (self )):
4847 self = selfref ()
4948 if self is not None :
5049 del self .data [wr .key ]
5150 self ._remove = remove
51+ UserDict .UserDict .__init__ (self , * args , ** kw )
5252
5353 def __getitem__ (self , key ):
5454 o = self .data [key ]()
Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ Extension Modules
141141Library
142142-------
143143
144+ - Bug #1196315: fix weakref.WeakValueDictionary constructor.
145+
144146- Bug #1213894: os.path.realpath didn't resolve symlinks that were the first
145147 component of the path.
146148
You can’t perform that action at this time.
0 commit comments