[pypy-commit] pypy jit-singlefloat: Support no-thread environments.

arigo noreply at buildbot.pypy.org
Thu Jul 28 21:47:41 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-singlefloat
Changeset: r46062:78ad8b3ddc9e
Date: 2011-07-28 17:43 +0200
http://bitbucket.org/pypy/pypy/changeset/78ad8b3ddc9e/

Log:	Support no-thread environments.

diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py b/pypy/rpython/lltypesystem/ll2ctypes.py
--- a/pypy/rpython/lltypesystem/ll2ctypes.py
+++ b/pypy/rpython/lltypesystem/ll2ctypes.py
@@ -27,7 +27,11 @@
 from pypy.rpython import raddress
 from pypy.translator.platform import platform
 from array import array
-from thread import _local as tlsobject
+try:
+    from thread import _local as tlsobject
+except ImportError:
+    class tlsobject(object):
+        pass
 
 # ____________________________________________________________
 


More information about the pypy-commit mailing list