Use rsplit(':',1) for clarity; no functional changes
This commit is contained in:
parent
1886307845
commit
09e4eac2e5
1 changed files with 1 additions and 1 deletions
|
@ -81,5 +81,5 @@ def _parse_ip_host_and_port(hostname):
|
|||
else:
|
||||
return hostname, None
|
||||
elif ':' in hostname:
|
||||
return hostname.split(':')
|
||||
return hostname.rsplit(':', 1)
|
||||
return hostname, None
|
||||
|
|
Loading…
Reference in a new issue