We're only looking at a simple string match.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
scripts/group-qemu-caps.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/scripts/group-qemu-caps.py b/scripts/group-qemu-caps.py
index 49b64c93fc..3581d1545a 100755
--- a/scripts/group-qemu-caps.py
+++ b/scripts/group-qemu-caps.py
@@ -27,7 +27,7 @@ import subprocess
import sys
-def load_caps_flags(filename, start_regex, end_regex):
+def load_caps_flags(filename, start_str, end_str):
capsflags = []
lines = []
start = 0
@@ -37,9 +37,9 @@ def load_caps_flags(filename, start_regex, end_regex):
lines = fh.read().splitlines()
for idx, line in enumerate(lines):
- if re.search(start_regex, line):
+ if start_str in line:
start = idx
- elif re.search(end_regex, line):
+ elif end_str in line:
end = idx
break
@@ -136,8 +136,8 @@ args = parser.parse_args()
errs = False
capsflags = load_caps_flags(args.prefix + 'src/qemu/qemu_capabilities.h',
- r'virQEMUCapsFlags grouping marker',
- r'QEMU_CAPS_LAST \/\* this must')
+ 'virQEMUCapsFlags grouping marker',
+ 'QEMU_CAPS_LAST /* this must')
if not regroup_caps(args.check,
args.prefix + 'src/qemu/qemu_capabilities.c',
--
2.45.2