mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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:
|
except IndexError:
|
||||||
raise validation_error
|
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:
|
if match:
|
||||||
ip_address = match.group(1)
|
ip_address = match.group(1)
|
||||||
port = match.group(2)
|
port = match.group(2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user