Skip to content

Commit

Permalink
Merge pull request #4169 from randombit/jack/fix-python-regex
Browse files Browse the repository at this point in the history
Fix a Python SyntaxWarning regarding regex patterns
  • Loading branch information
randombit authored Jul 1, 2024
2 parents 2bc014e + 8d58dba commit eaf9fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/test_cli_crypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def __init__(self, filepath):
last_group_name = ""
current_testcase = {}

PATTERN_GROUPHEADER = "^\[(.+)\]$"
PATTERN_KEYVALUE = "^\s*([a-zA-Z]+)\s*=(.*)$"
PATTERN_GROUPHEADER = r"^\[(.+)\]$"
PATTERN_KEYVALUE = r"^\s*([a-zA-Z]+)\s*=(.*)$"

with open(filepath, 'r') as f:
# Append one empty line to simplify parsing
Expand Down

0 comments on commit eaf9fd6

Please sign in to comment.