[meson] Fix fix_get_types.py shabang, minor format
This commit is contained in:
parent
887aa0214f
commit
d2e3a048d1
|
@ -1,15 +1,15 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
if __name__=='__main__':
|
parser = argparse.ArgumentParser ()
|
||||||
parser = argparse.ArgumentParser()
|
parser.add_argument ('input')
|
||||||
parser.add_argument('input')
|
parser.add_argument ('output')
|
||||||
parser.add_argument('output')
|
args = parser.parse_args ()
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
with open(args.input, 'r') as inp:
|
with open (args.input, 'r') as inp, open (args.output, 'w') as out:
|
||||||
with open(args.output, 'w') as out:
|
for l in inp.readlines ():
|
||||||
for l in inp.readlines():
|
l = re.sub ('_t_get_type', '_get_type', l)
|
||||||
l = re.sub('_t_get_type', '_get_type', l)
|
l = re.sub ('_T \(', ' (', l)
|
||||||
l = re.sub('_T \(', ' (', l)
|
out.write (l)
|
||||||
out.write(l)
|
|
||||||
|
|
Loading…
Reference in New Issue