[Openstack] git-review change 3988
    Pete Zaitcev 
    zaitcev at redhat.com
       
    Fri Feb 10 03:16:28 UTC 2012
    
    
  
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
    
    
More information about the Openstack
mailing list