aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Peter Foley <pefoley2@pefoley.com>2015-07-06 12:19:58 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2015-07-06 12:31:41 +0000
commit8e36c422255a99c8b3a7aac10b2d105294c7fa64 (patch)
treecfcba57147ddedccf5965dac7f72fb4da3569cc6 /examples
parent8cc19234977fb0fe68a9d28e435b5cd247a7de53 (diff)
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
Diffstat (limited to 'examples')
-rw-r--r--examples/py/bin.py2
1 files changed, 1 insertions, 1 deletions
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))