use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / examples / netns / local_switch_ping.py
index 0bb1732..e69a7e8 100644 (file)
@@ -21,6 +21,8 @@
 # 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")
@@ -73,4 +75,4 @@ stdout = ec.trace(ping, "stdout")
 
 ec.shutdown()
 
-print "PING OUTPUT", stdout
+print("PING OUTPUT", stdout)