X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Flinux%2Fvlc_streaming.py;fp=examples%2Flinux%2Fvlc_streaming.py;h=d888e3bdfb3f12bae7ad49417119c46e00a48690;hb=bb6985326609602a117e65822ada42f2685c1a36;hp=a7e544e9748be6f5bd35b189165a111affaa43ae;hpb=b4af9a40867beff8660612fe20d3838cb375f159;p=nepi.git diff --git a/examples/linux/vlc_streaming.py b/examples/linux/vlc_streaming.py index a7e544e9..d888e3bd 100644 --- a/examples/linux/vlc_streaming.py +++ b/examples/linux/vlc_streaming.py @@ -116,9 +116,8 @@ ec.deploy() ec.wait_finished([server]) video = ec.trace(client, "VIDEO") -f = open("video.ts", "w") -f.write(video) -f.close() +with open("video.ts", "w") as f: + f.write(video) ec.shutdown()