Author: Ned Batchelder <[email protected]>
Branch: nedbat-sandbox-2
Changeset: r50527:585b46142c3e
Date: 2011-12-14 22:58 -0500
http://bitbucket.org/pypy/pypy/changeset/585b46142c3e/

Log:    Move another import so we don't require 'import py'

diff --git a/pypy/translator/sandbox/sandlib.py 
b/pypy/translator/sandbox/sandlib.py
--- a/pypy/translator/sandbox/sandlib.py
+++ b/pypy/translator/sandbox/sandlib.py
@@ -4,7 +4,6 @@
 for the outer process, which can run CPython or PyPy.
 """
 
-import py
 import sys, os, posixpath, errno, stat, time
 import subprocess
 from pypy.tool.killsubprocess import killsubprocess
@@ -12,7 +11,8 @@
 
 def create_log():
     """Make and return a log for the sandbox to use, if needed."""
-    # This import is local to avoid importing pypy if we don't need to.
+    # These imports are local to avoid importing pypy if we don't need to.
+    import py
     from pypy.tool.ansi_print import AnsiLog
 
     class MyAnsiLog(AnsiLog):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to