Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix deprecation warning due to invalid escape sequences #7895

Merged
merged 2 commits into from
Jul 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/7895.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix deprecation warning due to invalid escape sequences.
8 changes: 4 additions & 4 deletions contrib/experiments/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def on_line(self, line):
"""

try:
m = re.match("^join (\S+)$", line)
m = re.match(r"^join (\S+)$", line)
if m:
# The `sender` wants to join a room.
(room_name,) = m.groups()
Expand All @@ -84,7 +84,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^invite (\S+) (\S+)$", line)
m = re.match(r"^invite (\S+) (\S+)$", line)
if m:
# `sender` wants to invite someone to a room
room_name, invitee = m.groups()
Expand All @@ -93,7 +93,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^send (\S+) (.*)$", line)
m = re.match(r"^send (\S+) (.*)$", line)
if m:
# `sender` wants to message a room
room_name, body = m.groups()
Expand All @@ -102,7 +102,7 @@ def on_line(self, line):
# self.print_line("OK.")
return

m = re.match("^backfill (\S+)$", line)
m = re.match(r"^backfill (\S+)$", line)
if m:
# we want to backfill a room
(room_name,) = m.groups()
Expand Down