use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / src / nepi / __init__.py
index bb2f172..18764d0 100644 (file)
@@ -16,6 +16,8 @@
 #
 # Author: Alina Quereilhac <alina.quereilhac@inria.fr>
 
+from __future__ import print_function
+
 import logging
 import os
 import traceback
@@ -40,7 +42,7 @@ if LOG != 'ALL':
            log.setLevel(LOGLEVEL)
         except:
             err = traceback.format_exc()
-            print "ERROR ", err
+            print("ERROR ", err)
 else:
     # Set the logging level defined by the user for all
     # components