File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ def is_ip_address(address):
195195 return True
196196 except ValueError :
197197 return False
198-
198+
199199 if is_ip_address (server ):
200200 return server , default_port
201201
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ def testIPv6(self):
3939 server = bmemcached .protocol .Protocol ('2001:db8::2' )
4040 self .assertEqual (server .host , '2001:db8::2' )
4141 self .assertEqual (server .port , 11211 )
42- # Since `2001:db8::2:8080` is a valid IPv6 address,
42+ # Since `2001:db8::2:8080` is a valid IPv6 address,
4343 # it is ambiguous whether to split it into `2001:db8::2` and `8080`
44- # or treat it as `2001:db8::2:8080`.
44+ # or treat it as `2001:db8::2:8080`.
4545 # Therefore, it will be treated as `2001:db8::2:8080`.
4646 server = bmemcached .protocol .Protocol ('2001:db8::2:8080' )
4747 self .assertEqual (server .host , '2001:db8::2:8080' )
You can’t perform that action at this time.
0 commit comments