]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/pbar/test/test3.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / pbar / test / test3.py
index 84a56c36a99c4e45a8d9707f7e881d593e7211dc..77979a1ddc43c6b34359963a909a22cd6bc79c00 100755 (executable)
@@ -3,13 +3,14 @@
    Test N3 to time file reading
 """
 
+from __future__ import print_function
 import sys, os
 from clock import clock
 from m_lib.pbar.tty_pbar import ttyProgressBar
 
 
 def test():
-   print "Test: ",
+   print("Test: ", end=' ')
    sys.stdout.flush()
 
    size = os.path.getsize(sys.argv[1])
@@ -36,9 +37,9 @@ def test():
    infile.close()
    pbar.erase()
 
-   print "Ok"
+   print("Ok")
 
 
 if __name__ == "__main__":
    test()
-   print "Overall time:", clock()
+   print("Overall time:", clock())