mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 04:39:26 +01:00
startwith
-> startswith
This commit is contained in:
parent
61d9596d35
commit
e7b076aa44
@ -258,7 +258,7 @@ class Servers(registry.SpaceSeparatedListOfStrings):
|
|||||||
(server, port) = s.rsplit(':', 1)
|
(server, port) = s.rsplit(':', 1)
|
||||||
|
|
||||||
# support for `[ipv6]:port` format
|
# support for `[ipv6]:port` format
|
||||||
if server.startwith("[") and server.endswith("]"):
|
if server.startswith("[") and server.endswith("]"):
|
||||||
server = server[1:-1]
|
server = server[1:-1]
|
||||||
|
|
||||||
port = int(port)
|
port = int(port)
|
||||||
|
Loading…
Reference in New Issue
Block a user