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
/
planetlab
/
ping.py
diff --git
a/examples/planetlab/ping.py
b/examples/planetlab/ping.py
index
c481278
..
f35ea70
100644
(file)
--- a/
examples/planetlab/ping.py
+++ b/
examples/planetlab/ping.py
@@
-24,6
+24,7
@@
# $ cd <path-to-nepi>
# python examples/planetlab/ping.py -s <pl-slice> -u <pl-user> -p <pl-password> -k <pl-ssh-key>
# $ cd <path-to-nepi>
# python examples/planetlab/ping.py -s <pl-slice> -u <pl-user> -p <pl-password> -k <pl-ssh-key>
+from __future__ import print_function
from nepi.execution.ec import ExperimentController
from nepi.execution.ec import ExperimentController
@@
-86,7
+87,7
@@
ec.wait_finished(app)
trace = ec.trace(app, "stdout")
trace = ec.trace(app, "stdout")
-print
"PING outout ", trace
+print
("PING outout ", trace)
# Do the experiment controller shutdown
ec.shutdown()
# Do the experiment controller shutdown
ec.shutdown()