Commit 09e4eac2 by Abhijit Menon-Sen

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

parent 18863078
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment