Guys,
Am I going mad? Can't see what's going on. The resulting code after commit
looks is this (copy-pasted precisely):
# Workaround bug in urlparse on OSX
if parsed_url.scheme == "ssh" and hostname[:2] == "//":
hostname = hostname[2:].split("/")[0]
# Workaround bug in urlparse on OSX
elif parsed_url.scheme == "ssh" and hostname[:2] == "//":
hostname = hostname[2:].split("/")[0]
How is this supposed to work? The conditions looks absolutely identical!
Therefore
if A:
foo
elif A:
foo
How could elif evaluate to true and the second foo run?
-- P
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp