Skip to content

Commit a520c51

Browse files
Correct the regex calls
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent d6a396e commit a520c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/wasm-rebuild/docker-scripts/isolate_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def extract_and_write(f, path):
4646
def write_cases(f, tests):
4747
cleaned_filename = f.replace(".","_").replace("-","_").replace(" ","_").lower()
4848
for test in tests:
49-
remainder = re.sub(r'^ {4}', '', test, 0, re.MULTILINE)
49+
remainder = re.sub(r'^ {4}', '', test, count=0, flags=re.MULTILINE)
5050
source_code_hash = hashlib.sha256(test).hexdigest()
5151
with open(f'test_{source_code_hash}_{cleaned_filename}.sol', 'w', encoding='utf8') as _f:
5252
_f.write(remainder)

0 commit comments

Comments
 (0)