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
/
omf
/
nitos_omf6_vlc.py
diff --git
a/examples/omf/nitos_omf6_vlc.py
b/examples/omf/nitos_omf6_vlc.py
index
95b74c0
..
eb615fe
100644
(file)
--- a/
examples/omf/nitos_omf6_vlc.py
+++ b/
examples/omf/nitos_omf6_vlc.py
@@
-46,6
+46,8
@@
# - t3 (t2 + 2s) : Kill the application
#
# - t3 (t2 + 2s) : Kill the application
#
+from __future__ import print_function
+
from nepi.execution.resource import ResourceAction, ResourceState
from nepi.execution.ec import ExperimentController
from nepi.execution.resource import ResourceAction, ResourceState
from nepi.execution.ec import ExperimentController
@@
-156,7
+158,7
@@
ec.wait_finished([app2])
# Retrieve the bytes transmitted count and print it
byte_count = ec.trace(app2, "stdout")
# Retrieve the bytes transmitted count and print it
byte_count = ec.trace(app2, "stdout")
-print
"BYTES transmitted", byte_count
+print
("BYTES transmitted", byte_count)
## If you redirected the video to standard output, you can try to
## retrieve the stdout of the VLC client
## If you redirected the video to standard output, you can try to
## retrieve the stdout of the VLC client