aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <[email protected]>2025-06-23 08:42:05 +0200
committerJoerg Bornemann <[email protected]>2025-06-26 15:23:30 +0200
commitf4fe3d02e8c40c4ea3eea56292aaaf97e6e9d0d1 (patch)
treebf5f2978c05157452fd42314643213fca7c3142d
parent84d05950c9677ad277ccc9f03287d0e7a4506ab7 (diff)
Fix flags argument of re.sub in QMake parserHEADdev
The positional argument we passed as flags was interpreted as count. Uncovered by a deprecation warning. Change-Id: Icc39c66f0712e1829bfd126ff33d6618d2c308e3 Reviewed-by: Alexandru Croitor <[email protected]> Reviewed-by: Cristian Le <[email protected]>
-rwxr-xr-xsrc/qmake2cmake/qmake_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmake2cmake/qmake_parser.py b/src/qmake2cmake/qmake_parser.py
index 14e5dda..5f4e938 100755
--- a/src/qmake2cmake/qmake_parser.py
+++ b/src/qmake2cmake/qmake_parser.py
@@ -43,7 +43,7 @@ def fixup_comments(contents: str) -> str:
# care of it as well, as if the commented line didn't exist in the
# first place.
- contents = re.sub(r"(^|\n)[ \t]*#[^\n]*?\n", "\n", contents, re.DOTALL)
+ contents = re.sub(r"(^|\n)[ \t]*#[^\n]*?\n", "\n", contents, flags=re.DOTALL)
return contents