[pypy-commit] pypy nedbat-sandbox-2: Move another import so we don't require 'import py'
ned
noreply at buildbot.pypy.org
Thu Dec 15 04:59:07 CET 2011
Author: Ned Batchelder <ned at nedbatchelder.com>
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):
More information about the pypy-commit
mailing list