[pypy-svn] r29927 - pypy/dist/pypy/translator/tool
arigo at codespeak.net
arigo at codespeak.net
Mon Jul 10 20:14:32 CEST 2006
Author: arigo
Date: Mon Jul 10 20:14:30 2006
New Revision: 29927
Modified:
pypy/dist/pypy/translator/tool/pdbplus.py
Log:
Lazily import 'threading', which doesn't exist on top of pypy-c.
Modified: pypy/dist/pypy/translator/tool/pdbplus.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pdbplus.py (original)
+++ pypy/dist/pypy/translator/tool/pdbplus.py Mon Jul 10 20:14:30 2006
@@ -1,4 +1,4 @@
-import threading, pdb
+import pdb
import types
from pypy.objspace.flow.model import FunctionGraph
@@ -429,6 +429,7 @@
finally:
if cleanup is not None:
cleanup(*cleanup_args)
+ import threading
return threading.Thread(target=_run_in_thread, args=())
def start(self, tb, server_setup, graphic=False):
More information about the Pypy-commit
mailing list