data = data.replace(pat, sub)

This commit is contained in:
cclauss 2017-04-14 02:41:48 +02:00 committed by GitHub
parent 51cafa738b
commit f4d44ac122

View file

@ -43,7 +43,7 @@ def do(fn):
pat = fmt.format(modname)
sub = fmt.format(pac_mod)
print('{}: {} -> {}'.format(i + 1, pat, sub))
data.replace(pat, sub)
data = data.replace(pat, sub)
print('rewrite', fn_c)
with open(fn_c, 'w') as fd:
fd.write(data)