← Back to team overview

openstack team mailing list archive

git-review change 3988

 

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


Follow ups