diff options
author | Jesús <heckyel@hyperbola.info> | 2020-06-02 17:35:48 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-02 17:35:48 -0500 |
commit | ff4bb5f5678ac82600a9341aa8128f05c5e6173a (patch) | |
tree | 0ce3788b5e3053e0a45e0a04b6b497db116d257b | |
parent | d0f6449d66dcb80f210cc389c7f9861bef7282c6 (diff) | |
download | librevideoconverter-ff4bb5f5678ac82600a9341aa8128f05c5e6173a.tar.lz librevideoconverter-ff4bb5f5678ac82600a9341aa8128f05c5e6173a.tar.xz librevideoconverter-ff4bb5f5678ac82600a9341aa8128f05c5e6173a.zip |
reorganize file variable
-rw-r--r-- | test/testdata/fake_converter.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testdata/fake_converter.py b/test/testdata/fake_converter.py index ab27064..4eb359e 100644 --- a/test/testdata/fake_converter.py +++ b/test/testdata/fake_converter.py @@ -26,6 +26,7 @@ for i in range(RANGE): })) time.sleep(0.1) -with file(output, 'w') as f: +file = open(output, 'w') +with file as f: f.write('blank') print(json.dumps({'finished': True})) |