From 8e36c422255a99c8b3a7aac10b2d105294c7fa64 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Mon, 6 Jul 2015 12:19:58 +0000 Subject: Fix tests with python3 as default python. If the system python interpreter is set to python3, some tests fail because python3 requires parenthesies for the print statement. Fix this by adding the required parenthesies, which are a no-op for python2. -- Reviewed-on: https://github.com/google/bazel/pull/282 MOS_MIGRATED_REVID=97571926 --- examples/py/bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/py/bin.py b/examples/py/bin.py index 53e917e491..f4a6666ddd 100644 --- a/examples/py/bin.py +++ b/examples/py/bin.py @@ -1,3 +1,3 @@ from examples.py import lib -print "Fib(5)=%d" % lib.Fib(5) +print("Fib(5)=%d" % lib.Fib(5)) -- cgit v1.2.3