mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
bc6ce14cdb
commit
938dadcae0
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user