Skip to content

Commit 584cdcc

Browse files
authored
Merge pull request #16060 from emmanuel-ferdman/develop
Pass `count` into `re.sub()` as a named argument in `isolate_tests.py` to fix the deprecation warning
2 parents 52864f6 + 67288d6 commit 584cdcc

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)