Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62214:2508584f0728
Date: 2013-03-08 01:44 -0500
http://bitbucket.org/pypy/pypy/changeset/2508584f0728/
Log: generalize these imports for py2/py3
diff --git a/lib_pypy/greenlet.py b/lib_pypy/greenlet.py
--- a/lib_pypy/greenlet.py
+++ b/lib_pypy/greenlet.py
@@ -111,7 +111,7 @@
# Internal stuff
try:
- from thread import _local
+ from threading import local as _local
except ImportError:
class _local(object): # assume no threads
pass
diff --git a/lib_pypy/stackless.py b/lib_pypy/stackless.py
--- a/lib_pypy/stackless.py
+++ b/lib_pypy/stackless.py
@@ -93,7 +93,7 @@
try:
- from thread import _local
+ from threading import local as _local
except ImportError:
class _local(object): # assume no threads
pass
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit