From 207934a0a0e8851d647fb401560def989942e23e Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Wed, 15 May 2024 18:38:17 +0100 Subject: [PATCH] fix: use r-string for regex in killing agent cleaner Found this because the tests warned me that "\s" is an invalid escape sequence --- dataimporter/emu/views/preparation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataimporter/emu/views/preparation.py b/dataimporter/emu/views/preparation.py index 284a585..90e1563 100644 --- a/dataimporter/emu/views/preparation.py +++ b/dataimporter/emu/views/preparation.py @@ -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)