From ddb309de55261f7015fee03a669bbb56c4539d68 Mon Sep 17 00:00:00 2001 From: numerology Date: Sun, 25 Aug 2019 22:33:36 -0700 Subject: [PATCH] Fix the missing argument of re.sub --- test/sample-test/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sample-test/utils.py b/test/sample-test/utils.py index fe3683197ca..468883219c5 100644 --- a/test/sample-test/utils.py +++ b/test/sample-test/utils.py @@ -81,7 +81,7 @@ def file_injection(file_in, tmp_file_out, subs): tmp_line = line for old, new in subs.items(): regex = re.compile(old) - tmp_line = re.sub(regex, new) + tmp_line = re.sub(regex, new, line) fout.write(tmp_line)