tor: Fix deprecation warning W605 for '\' character in regex

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2019-02-14 15:33:34 -08:00
1 parent bc6ce14cdb
commit 938dadcae0
1 file changed
+1 -1
+1 -1
View File
@@ -64,7 +64,7 @@ def bridges_validator(bridges):
except IndexError:
raise validation_error
match = re.match('\[([a-fA-F0-9:]+)\](?::([0-9]+))?', ip_port_part)
match = re.match(r'\[([a-fA-F0-9:]+)\](?::([0-9]+))?', ip_port_part)
if match:
ip_address = match.group(1)
port = match.group(2)