X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fpbar%2Ftest%2Ftest2.py;h=ebc4ef34e30b63d647222ee75954e2e5d6ed1c38;hb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;hp=80dea235bc6eb89fffebfebec43b48a659f36466;hpb=9a523766e02fc3c5d1df4550385a604dca8e6e80;p=m_lib.git diff --git a/m_lib/pbar/test/test2.py b/m_lib/pbar/test/test2.py index 80dea23..ebc4ef3 100755 --- a/m_lib/pbar/test/test2.py +++ b/m_lib/pbar/test/test2.py @@ -3,12 +3,13 @@ Test N2 to time file reading """ +from __future__ import print_function import sys from clock import clock def test(): - print "Test: ", + print("Test: ", end=' ') sys.stdout.flush() infile = open(sys.argv[1]) @@ -19,9 +20,9 @@ def test(): lines.append(line) infile.close() - print "Ok" + print("Ok") if __name__ == "__main__": test() - print "Overall time:", clock() + print("Overall time:", clock())