Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r54576:e59cb3b60396
Date: 2012-04-20 13:53 +0200
http://bitbucket.org/pypy/pypy/changeset/e59cb3b60396/

Log:    Bug fix in the absence of 'thread'.

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
@@ -3,7 +3,8 @@
 try:
     from thread import _local as local
 except ImportError:
-    local = object    # no threads
+    class local(object):    # no threads
+        pass
 
 class ConvMode:
     encoding = 'ascii'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to