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
dos2unix'es all files- only one affected : topology.py in the ns3 examples area
[nepi.git]
/
examples
/
linux
/
ccn_simple_transfer.py
diff --git
a/examples/linux/ccn_simple_transfer.py
b/examples/linux/ccn_simple_transfer.py
index
39ea8f0
..
ccf92eb
100644
(file)
--- a/
examples/linux/ccn_simple_transfer.py
+++ b/
examples/linux/ccn_simple_transfer.py
@@
-147,9
+147,8
@@
ec.deploy()
ec.wait_finished([ccncat])
stdout = ec.trace(ccncat, "stdout")
-f = open("video.ts", "w")
-f.write(stdout)
-f.close()
+with open("video.ts", "w") as f:
+ f.write(stdout)
ec.shutdown()