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
/
netns
/
local_switch_ping.py
diff --git
a/examples/netns/local_switch_ping.py
b/examples/netns/local_switch_ping.py
index
0bb1732
..
e69a7e8
100644
(file)
--- a/
examples/netns/local_switch_ping.py
+++ b/
examples/netns/local_switch_ping.py
@@
-21,6
+21,8
@@
# This example must be executed as root:
# $ sudo PYTHONPATH=$PYTHONPATH:src python examples/netns/local_switch_ping.py
# This example must be executed as root:
# $ sudo PYTHONPATH=$PYTHONPATH:src python examples/netns/local_switch_ping.py
+from __future__ import print_function
+
from nepi.execution.ec import ExperimentController
ec = ExperimentController(exp_id = "netns-local-p2p-ping")
from nepi.execution.ec import ExperimentController
ec = ExperimentController(exp_id = "netns-local-p2p-ping")
@@
-73,4
+75,4
@@
stdout = ec.trace(ping, "stdout")
ec.shutdown()
ec.shutdown()
-print
"PING OUTPUT", stdout
+print
("PING OUTPUT", stdout)