Skip to content
Snippets Groups Projects
Commit 0f620e7f authored by Scott Snyder's avatar Scott Snyder Committed by Frank Winklmeier
Browse files

ActsConfig: Fix RE syntax.

ActsConfig: Fix RE syntax.

Use raw strings for regexps.
Fixes warnings from py3.12 about bad escape sequences.
parent 7af509d4
No related branches found
No related tags found
No related merge requests found
......@@ -14,16 +14,16 @@ def main(fileName: str):
with open(fileName, 'r') as inFile:
for line in inFile:
# Check stat report statement
match = re.findall('(Acts\S+\s+INFO.*statistics)', line)
match = re.findall(r'(Acts\S+\s+INFO.*statistics)', line)
if match:
print(match[0])
match = re.findall('(Acts\S+\s+INFO.*Ratios)', line)
match = re.findall(r'(Acts\S+\s+INFO.*Ratios)', line)
if match:
print(match[0])
# print table
match = re.findall('\d{2}:\d{2}:\d{2}\s(\|[A-Za-z0-9. +/-]+\|[^a-df-z]+\|$)', line)
match = re.findall(r'\d{2}:\d{2}:\d{2}\s(\|[A-Za-z0-9. +/-]+\|[^a-df-z]+\|$)', line)
if match:
print(match[0])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment