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