[pypy-commit] pypy stm-gc: Use __pypy__.local here.
arigo
noreply at buildbot.pypy.org
Fri Apr 20 14:55:38 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54582:b5e2dbeb1aaa
Date: 2012-04-20 14:18 +0200
http://bitbucket.org/pypy/pypy/changeset/b5e2dbeb1aaa/
Log: Use __pypy__.local here.
diff --git a/lib_pypy/_ctypes/builtin.py b/lib_pypy/_ctypes/builtin.py
--- a/lib_pypy/_ctypes/builtin.py
+++ b/lib_pypy/_ctypes/builtin.py
@@ -1,10 +1,6 @@
import _rawffi, sys
-try:
- from thread import _local as local
-except ImportError:
- class local(object): # no threads
- pass
+from __pypy__ import local
class ConvMode:
encoding = 'ascii'
More information about the pypy-commit
mailing list