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]
/
examples
/
dce
/
custom_local_p2p_ccn.py
diff --git
a/examples/dce/custom_local_p2p_ccn.py
b/examples/dce/custom_local_p2p_ccn.py
index
04a46fc
..
243470f
100644
(file)
--- a/
examples/dce/custom_local_p2p_ccn.py
+++ b/
examples/dce/custom_local_p2p_ccn.py
@@
-17,6
+17,8
@@
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
+from __future__ import print_function
+
from nepi.execution.ec import ExperimentController
import os
from nepi.execution.ec import ExperimentController
import os
@@
-164,7
+166,7
@@
ec.wait_finished([ccncat])
stdout = ec.trace(ccncat, "stdout")
# convert from bytes to MB
stdout = ec.trace(ccncat, "stdout")
# convert from bytes to MB
-print
"%0.2f MBytes received" % (len(stdout) / 1024.0 / 1024.0
)
+print
("%0.2f MBytes received" % (len(stdout) / 1024.0 / 1024.0 )
)
ec.shutdown()
ec.shutdown()