Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 4a2aeea

Browse files
committed
Update CLI to use new utility function
1 parent 4ec8b83 commit 4a2aeea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyper/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def make_troubleshooting_argument(parser):
113113
def set_url_info(args):
114114
def split_host_and_port(hostname):
115115
if ':' in hostname:
116-
host, port = hostname.split(':')
117-
return host, int(port)
116+
host, port = to_host_port_tuple(hostname)
117+
return host, port
118118
return hostname, None
119119

120120
class UrlInfo(object):

0 commit comments

Comments
 (0)