]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/pbar/test/test1.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / pbar / test / test1.py
index ed15ce6955f56e94bd62bdc5a4fe346e70895ade..0276f4897c6e8de393200f05ef1b71adb8bfaca1 100755 (executable)
@@ -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())