use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / examples / linux / ping.py
index d127fc9..0200b54 100644 (file)
@@ -22,6 +22,7 @@
 # $ cd <path-to-nepi>
 # python examples/linux/ping.py -a <hostname> -u <username> -i <ssh-key>
 
+from __future__ import print_function
 
 from nepi.execution.ec import ExperimentController 
 
@@ -61,7 +62,7 @@ ec.deploy()
 
 ec.wait_finished(app)
 
-print ec.trace(app, "stdout")
+print(ec.trace(app, "stdout"))
 
 ec.shutdown()