Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
pytest shows `DeprecationWarning: invalid escape sequence '\s'`. Use a
raw string to fix this.
  • Loading branch information
picsel2 authored and diegogangl committed Apr 9, 2024
1 parent 95e9022 commit ce4bbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ce4bbf9

Please sign in to comment.