forked from OSchip/llvm-project
[gn build] use PEP-8 indents in symbol_exports.py
This commit is contained in:
parent
f05fbb7795
commit
f3f592ac89
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue