From f4d44ac1228e50dedf05d231ef71a21a00c076ef Mon Sep 17 00:00:00 2001 From: cclauss Date: Fri, 14 Apr 2017 02:41:48 +0200 Subject: [PATCH] data = data.replace(pat, sub) --- tools/cythonize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cythonize.py b/tools/cythonize.py index f70dff3..c73dd64 100755 --- a/tools/cythonize.py +++ b/tools/cythonize.py @@ -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)