Skip to content

Commit c3a8446

Browse files
authored
Merge pull request #188 from Jonney/patch-3
Fix SyntaxWarning
2 parents f512359 + 10f5013 commit c3a8446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pproxy/proto.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
packstr = lambda s, n=1: len(s).to_bytes(n, 'big') + s
55

66
def netloc_split(loc, default_host=None, default_port=None):
7-
ipv6 = re.fullmatch('\[([0-9a-fA-F:]*)\](?::(\d+)?)?', loc)
7+
ipv6 = re.fullmatch(r'\[([0-9a-fA-F:]*)\](?::(\d+)?)?', loc)
88
if ipv6:
99
host_name, port = ipv6.groups()
1010
elif ':' in loc:

0 commit comments

Comments
 (0)