def _match_vcs_scheme(url):
    "Look for VCS schemes in the URL.\n\n    Returns the matched VCS scheme, or None if there's no match.\n    "
    for scheme in vcs.schemes:
        if (url.lower().startswith(scheme) and (url[len(scheme)] in '+:')):
            return scheme
    return None
Look for VCS schemes in the URL.

Returns the matched VCS scheme, or None if there's no match.
def _match_vcs_scheme(url):
    "Look for VCS schemes in the URL.\n\n    Returns the matched VCS scheme, or None if there's no match.\n    "
    for scheme in vcs.schemes:
        if (url.lower().startswith(scheme) and (url[len(scheme)] in '+:')):
            return scheme
    return None