diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2020-07-20 21:15:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 16:45:51 +0100 |
commit | 438020732e4dec004e850e684325321e2efb606d (patch) | |
tree | fe2ccb01ab805b1243932bd0484054778e8df335 /contrib/experiments | |
parent | Remove Ubuntu Eoan that is now EOL (#7888) (diff) | |
download | synapse-438020732e4dec004e850e684325321e2efb606d.tar.xz |
Fix deprecation warning due to invalid escape sequences (#7895)
* Fix deprecation warnings due to invalid escape sequences. * Add changelog Signed-off-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | contrib/experiments/test_messaging.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/experiments/test_messaging.py b/contrib/experiments/test_messaging.py index 3bbbcfa1b4..ac9079fe94 100644 --- a/contrib/experiments/test_messaging.py +++ b/contrib/experiments/test_messaging.py @@ -75,7 +75,7 @@ class InputOutput(object): """ 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() @@ -84,7 +84,7 @@ class InputOutput(object): # 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() @@ -93,7 +93,7 @@ class InputOutput(object): # 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() @@ -102,7 +102,7 @@ class InputOutput(object): # 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() |