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
/
linux
/
hello_world.py
diff --git
a/examples/linux/hello_world.py
b/examples/linux/hello_world.py
index
424536b
..
2e026b5
100644
(file)
--- a/
examples/linux/hello_world.py
+++ b/
examples/linux/hello_world.py
@@
-22,6
+22,8
@@
# $ cd <path-to-nepi>
# python examples/linux/hello_world.py -a <hostname> -u <username> -i <ssh-key>
# $ cd <path-to-nepi>
# python examples/linux/hello_world.py -a <hostname> -u <username> -i <ssh-key>
+from __future__ import print_function
+
from nepi.execution.ec import ExperimentController
from optparse import OptionParser, SUPPRESS_HELP
from nepi.execution.ec import ExperimentController
from optparse import OptionParser, SUPPRESS_HELP
@@
-66,7
+68,7
@@
ec.deploy()
ec.wait_finished(app)
ec.wait_finished(app)
-print
ec.trace(app, "stdout"
)
+print
(ec.trace(app, "stdout")
)
ec.shutdown()
ec.shutdown()