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):
195
195
return True
196
196
except ValueError :
197
197
return False
198
-
198
+
199
199
if is_ip_address (server ):
200
200
return server , default_port
201
201
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ def testIPv6(self):
39
39
server = bmemcached .protocol .Protocol ('2001:db8::2' )
40
40
self .assertEqual (server .host , '2001:db8::2' )
41
41
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,
43
43
# 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`.
45
45
# Therefore, it will be treated as `2001:db8::2:8080`.
46
46
server = bmemcached .protocol .Protocol ('2001:db8::2:8080' )
47
47
self .assertEqual (server .host , '2001:db8::2:8080' )
You can’t perform that action at this time.
0 commit comments