X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fpbar%2Ftest%2Ftest1.py;h=0276f4897c6e8de393200f05ef1b71adb8bfaca1;hp=ed15ce6955f56e94bd62bdc5a4fe346e70895ade;hb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;hpb=9a523766e02fc3c5d1df4550385a604dca8e6e80 diff --git a/m_lib/pbar/test/test1.py b/m_lib/pbar/test/test1.py index ed15ce6..0276f48 100755 --- a/m_lib/pbar/test/test1.py +++ b/m_lib/pbar/test/test1.py @@ -3,21 +3,22 @@ Test N1 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]) lines = infile.readlines() infile.close() - print "Ok" + print("Ok") if __name__ == "__main__": test() - print "Overall time:", clock() + print("Overall time:", clock())