def normalize_url(url):
        # type: (str) -> str
        """
        Normalize a URL for comparison by unquoting it and removing any
        trailing slash.
        """
        return urllib_parse.unquote(url).rstrip('/')

        Normalize a URL for comparison by unquoting it and removing any
        trailing slash.
        
product/gradle-plugin/src/main/python/pip/_internal/vcs/versioncontrol.py