More portable way of doing print in run_tests.py

This commit is contained in:
Dmitry Babokin
2013-04-24 17:11:30 +02:00
parent c5acf239f2
commit 14fe987956

View File

@@ -70,7 +70,7 @@ if not os.path.exists(ispc_exe):
ispc_exe += " " + options.ispc_flags
if __name__ == '__main__':
print "ispc compiler: %s\n" % ispc_exe
sys.stdout.write("ispc compiler: %s\n" % ispc_exe)
is_generic_target = (options.target.find("generic-") != -1 and
options.target != "generic-1")