use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / examples / planetlab / ping.py
index c481278..f35ea70 100644 (file)
@@ -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>  
 
+from __future__ import print_function
 
 from nepi.execution.ec import ExperimentController
 
@@ -86,7 +87,7 @@ ec.wait_finished(app)
 
 trace = ec.trace(app, "stdout")
 
-print "PING outout ", trace
+print("PING outout ", trace)
 
 # Do the experiment controller shutdown
 ec.shutdown()