Use pylint.

This commit is contained in:
Ryan Dahl 2018-11-30 03:27:41 -05:00
parent d43a4be0d2
commit c5d8cf8eb6
18 changed files with 93 additions and 53 deletions

View file

@ -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")