[flang-commits] [flang] 8a90b5b - [flang][test] Change re.I to flags=re.I in re.sub
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Dec 5 07:42:01 PST 2024
Author: Krzysztof Parzyszek
Date: 2024-12-05T09:41:40-06:00
New Revision: 8a90b5b31776957cb9cfa4f9547d19544640c5cc
URL: https://github.com/llvm/llvm-project/commit/8a90b5b31776957cb9cfa4f9547d19544640c5cc
DIFF: https://github.com/llvm/llvm-project/commit/8a90b5b31776957cb9cfa4f9547d19544640c5cc.diff
LOG: [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`.
Added:
Modified:
flang/test/Semantics/test_symbols.py
Removed:
################################################################################
diff --git a/flang/test/Semantics/test_symbols.py b/flang/test/Semantics/test_symbols.py
index aca55acc8d402a..612ae0df94e230 100755
--- a/flang/test/Semantics/test_symbols.py
+++ b/flang/test/Semantics/test_symbols.py
@@ -29,7 +29,7 @@
# 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)
diff 1 += text
More information about the flang-commits
mailing list