def remove_auth_from_url(url):
    # type: (str) -> str
    """Return a copy of url with 'username:password@' removed."""
    # username/pass params are passed to subversion through flags
    # and are not recognized in the url.
    return _transform_url(url, _get_netloc)[0]
Return a copy of url with 'username:password@' removed.
product/gradle-plugin/src/main/python/pip/_internal/utils/misc.py