diff options
author | Armin Rigo <arigo@tunes.org> | 2017-03-20 23:30:47 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2017-03-20 23:30:47 +0100 |
commit | 1e15105b38c047c69f38f4513e13bd796fd63112 (patch) | |
tree | 48b736621078487767570c6eece7277ed4264d77 /lib-python | |
parent | hg merge (diff) | |
download | pypy-1e15105b38c047c69f38f4513e13bd796fd63112.tar.gz pypy-1e15105b38c047c69f38f4513e13bd796fd63112.tar.bz2 pypy-1e15105b38c047c69f38f4513e13bd796fd63112.zip |
Finally found the cause of "global name 'self' is not defined" when
running some combination of this lib-python and an older pypy
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/weakref.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-python/2.7/weakref.py b/lib-python/2.7/weakref.py index 749558d501..d3f9997194 100644 --- a/lib-python/2.7/weakref.py +++ b/lib-python/2.7/weakref.py @@ -36,9 +36,9 @@ try: except ImportError: def _delitem_if_value_is(d, key, value): try: - if self.data[key] is value: # fall-back: there is a potential + if d[key] is value: # fall-back: there is a potential # race condition in multithreaded programs HERE - del self.data[key] + del d[key] except KeyError: pass |