Commits

Brian Kearns  committed 2508584

generalize these imports for py2/py3

  • Participants
  • Parent commits 7a7fe66

Comments (0)

Files changed (2)

File lib_pypy/greenlet.py

 # Internal stuff
 
 try:
-    from thread import _local
+    from threading import local as _local
 except ImportError:
     class _local(object):    # assume no threads
         pass

File lib_pypy/stackless.py

 
 
 try:
-    from thread import _local
+    from threading import local as _local
 except ImportError:
     class _local(object):    # assume no threads
         pass