consistent 'with open(…) as fp:' syntax

This commit is contained in:
Mike Fährmann
2024-06-14 01:22:00 +02:00
parent 3fc2e61818
commit 9c65db2a92
15 changed files with 46 additions and 46 deletions

View File

@@ -53,5 +53,5 @@ for action in option.build_parser()._actions:
PATH = util.path("data/completion/_gallery-dl")
with util.lazy(PATH) as file:
file.write(TEMPLATE % {"opts": " \\\n".join(opts)})
with util.lazy(PATH) as fp:
fp.write(TEMPLATE % {"opts": " \\\n".join(opts)})