Skip to content

Commit

Permalink
fix: use r-string for regex in killing agent cleaner
Browse files Browse the repository at this point in the history
Found this because the tests warned me that "\s" is an invalid escape sequence
  • Loading branch information
jrdh committed May 15, 2024
1 parent 8b97bca commit 207934a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataimporter/emu/views/preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ def get_preparation_process(record: SourceRecord) -> Optional[str]:
if not process:
return None
else:
return re.sub("^killing agent:?\s*", "", process, count=1, flags=re.I)
return re.sub(r"^killing agent:?\s*", "", process, count=1, flags=re.I)

0 comments on commit 207934a

Please sign in to comment.