consistent 'with open(…) as fp:' syntax
This commit is contained in:
@@ -266,8 +266,8 @@ class UgoiraPP(PostProcessor):
|
||||
append("")
|
||||
|
||||
ffconcat = tempdir + "/ffconcat.txt"
|
||||
with open(ffconcat, "w") as file:
|
||||
file.write("\n".join(content))
|
||||
with open(ffconcat, "w") as fp:
|
||||
fp.write("\n".join(content))
|
||||
return ffconcat
|
||||
|
||||
def _write_mkvmerge_timecodes(self, tempdir):
|
||||
@@ -282,8 +282,8 @@ class UgoiraPP(PostProcessor):
|
||||
append("")
|
||||
|
||||
timecodes = tempdir + "/timecodes.tc"
|
||||
with open(timecodes, "w") as file:
|
||||
file.write("\n".join(content))
|
||||
with open(timecodes, "w") as fp:
|
||||
fp.write("\n".join(content))
|
||||
return timecodes
|
||||
|
||||
def calculate_framerate(self, frames):
|
||||
|
||||
Reference in New Issue
Block a user