use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / examples / omf / nitos_omf6_ping.py
index 40f8012..6deaf18 100644 (file)
@@ -45,6 +45,8 @@
 #        - t3 (t2 + 2s) : Kill the application
 #
 
+from __future__ import print_function
+
 from nepi.execution.ec import ExperimentController
 from nepi.execution.resource import ResourceAction, ResourceState
 
@@ -148,7 +150,7 @@ ec.wait_finished([app1])
 
 # Retrieve the output of the ping command
 ping_output = ec.trace(app1, "stdout")
-print "\n PING OUTPUT\n", ping_output, "\n"
+print("\n PING OUTPUT\n", ping_output, "\n")
 
 # Stop Experiment
 ec.shutdown()