]> git.phdru.name Git - m_lib.git/blob - m_lib/pbar/test/test1.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / pbar / test / test1.py
1 #! /usr/bin/env python
2 """
3    Test N1 to time file reading
4 """
5
6 from __future__ import print_function
7 import sys
8 from clock import clock
9
10
11 def test():
12    print("Test: ", end=' ')
13    sys.stdout.flush()
14
15    infile = open(sys.argv[1])
16    lines = infile.readlines()
17    infile.close()
18
19    print("Ok")
20
21
22 if __name__ == "__main__":
23    test()
24    print("Overall time:", clock())