From b4a807726365f963db3c5b0f0ba8b459c40a64d2 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Thu, 9 Mar 2017 21:29:07 -0800 Subject: Use print() function to fix py2/3 --- test/CXX/CXXVERSION.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/CXX/CXXVERSION.py b/test/CXX/CXXVERSION.py index 6017001..abe6ce0 100644 --- a/test/CXX/CXXVERSION.py +++ b/test/CXX/CXXVERSION.py @@ -38,16 +38,17 @@ if sys.platform == 'win32': test.write("versioned.py", -"""import os +"""from __future__ import print_function +import os import sys if '-dumpversion' in sys.argv: - print '3.9.9' + print('3.9.9') sys.exit(0) if '--version' in sys.argv: - print 'this is version 2.9.9 wrapping', sys.argv[2] + print('this is version 2.9.9 wrapping', sys.argv[2]) sys.exit(0) if sys.argv[1] not in [ '2.9.9', '3.9.9' ]: - print 'wrong version', sys.argv[1], 'when wrapping', sys.argv[2] + print('wrong version', sys.argv[1], 'when wrapping', sys.argv[2]) sys.exit(1) os.system(" ".join(sys.argv[2:])) """) -- cgit v0.12