git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use print() - import print_function - should be fine for both py2 and py3
[nepi.git]
/
src
/
nepi
/
__init__.py
diff --git
a/src/nepi/__init__.py
b/src/nepi/__init__.py
index
bb2f172
..
18764d0
100644
(file)
--- a/
src/nepi/__init__.py
+++ b/
src/nepi/__init__.py
@@
-16,6
+16,8
@@
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
+from __future__ import print_function
+
import logging
import os
import traceback
import logging
import os
import traceback
@@
-40,7
+42,7
@@
if LOG != 'ALL':
log.setLevel(LOGLEVEL)
except:
err = traceback.format_exc()
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
else:
# Set the logging level defined by the user for all
# components