data = data.replace(pat, sub)
This commit is contained in:
parent
51cafa738b
commit
f4d44ac122
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue