ksc/0003-cs-fix-invalid-escape.patch
Čestmír Kalina d1c090502f utils: fix invalid escape sequence
Resolves: https://issues.redhat.com/browse/RHEL-65759

Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
2024-11-18 16:19:06 +01:00

12 lines
353 B
Diff

--- a/utils.py
+++ b/utils.py
@@ -126,7 +126,7 @@
print('This tool needs to run on Red Hat Enterprise Linux')
return None
for rel in release:
- if re.match("\d.\d+",rel):
+ if re.match(r"\d+.\d+",rel):
return rel
print('This tool needs to run on Red Hat Enterprise Linux')
return None