[gn build] use PEP-8 indents in symbol_exports.py

This commit is contained in:
Nico Weber 2021-05-20 15:00:24 -04:00
parent f05fbb7795
commit f3f592ac89
1 changed files with 9 additions and 9 deletions

View File

@ -25,17 +25,17 @@ def main():
symbols = open(args.source).readlines()
if args.format == 'linux':
output_lines = ['FOO {\n']
if symbols:
output_lines += ([' global:\n',] +
[' %s;\n' % s.rstrip() for s in symbols])
output_lines += [' local: *;\n',
'}\n']
output_lines = ['FOO {\n']
if symbols:
output_lines += ([' global:\n',] +
[' %s;\n' % s.rstrip() for s in symbols])
output_lines += [' local: *;\n',
'}\n']
elif args.format == 'mac':
output_lines = ['_' + s for s in symbols]
output_lines = ['_' + s for s in symbols]
else:
assert args.format == 'win'
output_lines = ['EXPORTS\n'] + [' ' + s for s in symbols]
assert args.format == 'win'
output_lines = ['EXPORTS\n'] + [' ' + s for s in symbols]
open(args.output, 'w').writelines(output_lines)