We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f512359 + 10f5013 commit c3a8446Copy full SHA for c3a8446
pproxy/proto.py
@@ -4,7 +4,7 @@
4
packstr = lambda s, n=1: len(s).to_bytes(n, 'big') + s
5
6
def netloc_split(loc, default_host=None, default_port=None):
7
- ipv6 = re.fullmatch('\[([0-9a-fA-F:]*)\](?::(\d+)?)?', loc)
+ ipv6 = re.fullmatch(r'\[([0-9a-fA-F:]*)\](?::(\d+)?)?', loc)
8
if ipv6:
9
host_name, port = ipv6.groups()
10
elif ':' in loc:
0 commit comments