consistent 'with open(…) as fp:' syntax
This commit is contained in:
@@ -48,8 +48,8 @@ for action in option.build_parser()._actions:
|
||||
opts.append(opt)
|
||||
|
||||
PATH = util.path("data/completion/gallery-dl")
|
||||
with util.lazy(PATH) as file:
|
||||
file.write(TEMPLATE % {
|
||||
with util.lazy(PATH) as fp:
|
||||
fp.write(TEMPLATE % {
|
||||
"opts" : " ".join(opts),
|
||||
"diropts" : "|".join(diropts),
|
||||
"fileopts": "|".join(fileopts),
|
||||
|
||||
Reference in New Issue
Block a user