def is_vcs(pipfile_entry):
    # type: (PipfileType) -> bool
    """Determine if dictionary entry from Pipfile is for a vcs dependency."""
    if isinstance(pipfile_entry, Mapping):
        return any(key for key in pipfile_entry.keys() if key in VCS_LIST)

    elif isinstance(pipfile_entry, six.string_types):
        if not is_valid_url(pipfile_entry) and pipfile_entry.startswith("git+"):
            pipfile_entry = add_ssh_scheme_to_git_uri(pipfile_entry)

        parsed_entry = urlsplit(pipfile_entry)
        return parsed_entry.scheme in VCS_SCHEMES
    return False
def is_vcs ( pipfile_entry ) : if isinstance ( pipfile_entry , Mapping ) : return any ( key for key in pipfile_entry . keys ( ) if key in VCS_LIST ) elif isinstance ( pipfile_entry , six . string_types ) : if not is_valid_url ( pipfile_entry ) and pipfile_entry . startswith ( "git+" ) : pipfile_entry = add_ssh_scheme_to_git_uri ( pipfile_entry ) parsed_entry = urlsplit ( pipfile_entry ) return parsed_entry . scheme in VCS_SCHEMES return False
Determine if dictionary entry from Pipfile is for a vcs dependency.