Author: Armin Rigo <[email protected]> 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 # ____________________________________________________________ _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
