Skip to content

Commit

Permalink
Merge pull request #780 from seb0uil/fix-python-3.13
Browse files Browse the repository at this point in the history
fix: SyntaxWarning: invalid escape sequence
  • Loading branch information
bugy authored Jan 17, 2025
2 parents feb7f1b + 9756480 commit 2d94969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/execution/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _parse_history_parameters(parameters_text):

parameters = {}
for line in parameters_text.splitlines(keepends=True):
match = re.fullmatch('([\w_]+):(.*\r?\n)', line)
match = re.fullmatch(r'([\w_]+):(.*\r?\n)', line)
if not match:
current_value += line
continue
Expand Down
2 changes: 1 addition & 1 deletion src/migrations/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def __migrate_repeat_param_and_same_arg_param(context):


def _write_json(file_path, json_object, old_content):
space_matches = re.findall('^\s+', old_content, flags=re.MULTILINE)
space_matches = re.findall(r'^\s+', old_content, flags=re.MULTILINE)
if space_matches:
indent_string = space_matches[0].replace('\t', ' ')
indent = min(len(indent_string), 8)
Expand Down

0 comments on commit 2d94969

Please sign in to comment.