Skip to content

Commit

Permalink
Minor edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
puentesarrin committed Jan 2, 2015
1 parent d408a97 commit 91ae8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncflux/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, host=None, port=None, username=None, password=None,
raise TypeError("port must be an instance of int")

if '://' in host:
if host.startswith('http://') or host.startswith('https://'):
if host.startswith(('http://', 'https://')):
result = urlparse(host)
scheme = result.scheme
host = result.hostname
Expand Down

0 comments on commit 91ae8a6

Please sign in to comment.