mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +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:
parent
bc6ce14cdb
commit
938dadcae0
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user