def clean_git_uri(uri):
    'Cleans VCS uris from pip9 format'
    if isinstance(uri, six.string_types):
        if (uri.startswith('git+') and ('://' not in uri)):
            uri = uri.replace('git+', 'git+ssh://')
    return uri
Cleans VCS uris from pip9 format
def clean_git_uri(uri):
    
    if isinstance(uri, six.string_types):
        if (uri.startswith('git+') and ('://' not in uri)):
            uri = uri.replace('git+', 'git+ssh://')
    return uri