diff options
Diffstat (limited to 'deps/v8/tools/release/test_scripts.py')
-rwxr-xr-x | deps/v8/tools/release/test_scripts.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/v8/tools/release/test_scripts.py b/deps/v8/tools/release/test_scripts.py index e454f542ae..c1a571ca24 100755 --- a/deps/v8/tools/release/test_scripts.py +++ b/deps/v8/tools/release/test_scripts.py @@ -26,6 +26,9 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# for py2/py3 compatibility +from __future__ import print_function + import os import shutil import tempfile @@ -383,11 +386,11 @@ class ScriptTest(unittest.TestCase): return script(TEST_CONFIG, self, self._state).RunSteps([step_class], args) def Call(self, fun, *args, **kwargs): - print "Calling %s with %s and %s" % (str(fun), str(args), str(kwargs)) + print("Calling %s with %s and %s" % (str(fun), str(args), str(kwargs))) def Command(self, cmd, args="", prefix="", pipe=True, cwd=None): - print "%s %s" % (cmd, args) - print "in %s" % cwd + print("%s %s" % (cmd, args)) + print("in %s" % cwd) return self._mock.Call("command", cmd + " " + args, cwd=cwd) def ReadLine(self): |