aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-03-20 23:30:47 +0100
committerArmin Rigo <arigo@tunes.org>2017-03-20 23:30:47 +0100
commit1e15105b38c047c69f38f4513e13bd796fd63112 (patch)
tree48b736621078487767570c6eece7277ed4264d77 /lib-python
parenthg merge (diff)
downloadpypy-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.py4
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