consistent 'with open(…) as fp:' syntax
This commit is contained in:
@@ -41,5 +41,5 @@ for action in option.build_parser()._actions:
|
||||
opts.append(opt)
|
||||
|
||||
PATH = util.path("data/completion/gallery-dl.fish")
|
||||
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)})
|
||||
|
||||
Reference in New Issue
Block a user