[flang][test] Change re.I to flags=re.I in re.sub

Follow-up to da6099c9ad. As a positional argument, the `re.I` was in
place of `count`, not `flags`.
This commit is contained in:
Krzysztof Parzyszek
2024-12-05 09:37:51 -06:00
parent 34a076c46f
commit 8a90b5b317

View File

@@ -29,7 +29,7 @@ flang_fc1_options = "-fdebug-unparse-with-symbols"
# Strips out blank lines and all comments except for "!DEF:", "!REF:", "!$acc" and "!$omp"
with open(src, "r") as text_in:
for line in text_in:
text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, re.I)
text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, flags=re.I)
text = re.sub(r"^\s*$", "", text)
diff1 += text