X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fpbar%2Ftest%2Ftest3.py;h=77979a1ddc43c6b34359963a909a22cd6bc79c00;hb=fb3af94919a9ee18ba1c35f927f19837f057fa1f;hp=84a56c36a99c4e45a8d9707f7e881d593e7211dc;hpb=9a523766e02fc3c5d1df4550385a604dca8e6e80;p=m_lib.git diff --git a/m_lib/pbar/test/test3.py b/m_lib/pbar/test/test3.py index 84a56c3..77979a1 100755 --- a/m_lib/pbar/test/test3.py +++ b/m_lib/pbar/test/test3.py @@ -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())