Use rsplit(':',1) for clarity; no functional changes

This commit is contained in:
Abhijit Menon-Sen 2015-08-23 22:52:35 +05:30
parent 1886307845
commit 09e4eac2e5

View file

@ -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