aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-01-31 14:47:53 +0100
committerArmin Rigo <arigo@tunes.org>2013-01-31 14:47:53 +0100
commit89785896702fd376986349d0fc711edae505debb (patch)
tree2c39bb229be95548c15b226278363fd2cf5076bb /pypy/interpreter/miscutils.py
parentFactor out this class in a file used only during tests. (diff)
downloadpypy-89785896702fd376986349d0fc711edae505debb.tar.gz
pypy-89785896702fd376986349d0fc711edae505debb.tar.bz2
pypy-89785896702fd376986349d0fc711edae505debb.zip
Clean up, and make signals-but-no-thread working again.
Diffstat (limited to 'pypy/interpreter/miscutils.py')
-rw-r--r--pypy/interpreter/miscutils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pypy/interpreter/miscutils.py b/pypy/interpreter/miscutils.py
index 40a9531072..a6499fc7fe 100644
--- a/pypy/interpreter/miscutils.py
+++ b/pypy/interpreter/miscutils.py
@@ -17,9 +17,8 @@ class ThreadLocals:
def setvalue(self, value):
self._value = value
- def getmainthreadvalue(self):
- return self._value
+ def ismainthread(self):
+ return True
def getallvalues(self):
return {0: self._value}
-