mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Use pylint.
This commit is contained in:
parent
d43a4be0d2
commit
c5d8cf8eb6
18 changed files with 93 additions and 53 deletions
|
@ -94,9 +94,9 @@ def write_gn_args(args_filename, args):
|
|||
assert gn_args_are_generated(lines) # With header -> generated.
|
||||
|
||||
# Ensure the directory where args.gn goes exists.
|
||||
dir = os.path.dirname(args_filename)
|
||||
if not os.path.isdir(dir):
|
||||
os.makedirs(dir)
|
||||
d = os.path.dirname(args_filename)
|
||||
if not os.path.isdir(d):
|
||||
os.makedirs(d)
|
||||
|
||||
with open(args_filename, "w") as f:
|
||||
f.write("\n".join(lines) + "\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue