def _clean_url_path_part(part):
    # type: (str) -> str
    """
    Clean a "part" of a URL path (i.e. after splitting on "@" characters).
    """
    # We unquote prior to quoting to make sure nothing is double quoted.
    return urllib_parse.quote(urllib_parse.unquote(part))

    Clean a "part" of a URL path (i.e. after splitting on "@" characters).
    
product/gradle-plugin/src/main/python/pip/_internal/index/collector.py