]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/flad/test/test5.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / flad / test / test5.py
index 45b70aaa5445ff00c2303893dbc2d014cb489b35..9edc5b46923cc63e7192e38df8dcc7929429777c 100755 (executable)
@@ -1,18 +1,19 @@
 #! /usr/bin/env python
 
 
+from __future__ import print_function
 from m_lib.flad import fladc
 
 
 def test():
-   print "Test:",
+   print("Test:", end=' ')
 
    try: # Note! This must raise fladc.error - too many records in the file
       conf = fladc.load_file("test.txt")
    except fladc.error:
-      print "Ok"
+      print("Ok")
    else:
-      print "Error!"
+      print("Error!")
 
 
 if __name__ == "__main__":