From ce4bbf9f64540db0ec0d8c15063a4126ccc9c612 Mon Sep 17 00:00:00 2001 From: Sebastian Grabowski Date: Tue, 9 Apr 2024 09:51:04 +0200 Subject: [PATCH] Fix deprecation warning pytest shows `DeprecationWarning: invalid escape sequence '\s'`. Use a raw string to fix this. --- GTG/core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GTG/core/tasks.py b/GTG/core/tasks.py index 012ab6db4..3af19aae8 100644 --- a/GTG/core/tasks.py +++ b/GTG/core/tasks.py @@ -939,7 +939,7 @@ def unparent(self, item_id: UUID, parent_id: UUID) -> None: parent = self.lookup[parent_id] # remove inline references to the former subtask - parent.content = re.sub(r'\{\!\s*'+str(item_id)+'\s*\!\}','',parent.content) + parent.content = re.sub(r'\{\!\s*'+str(item_id)+r'\s*\!\}','',parent.content) self.model.append(item) parent.notify('has_children')