Skip to content

Commit 8a90b5b

Browse files
committed
[flang][test] Change re.I to flags=re.I in re.sub
Follow-up to da6099c. As a positional argument, the `re.I` was in place of `count`, not `flags`.
1 parent 34a076c commit 8a90b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Semantics/test_symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Strips out blank lines and all comments except for "!DEF:", "!REF:", "!$acc" and "!$omp"
3030
with open(src, "r") as text_in:
3131
for line in text_in:
32-
text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, re.I)
32+
text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, flags=re.I)
3333
text = re.sub(r"^\s*$", "", text)
3434
diff1 += text
3535

0 commit comments

Comments
 (0)