def compare_urls(cls, url1, url2):
        # type: (str, str) -> bool
        """
        Compare two repo URLs for identity, ignoring incidental differences.
        """
        return (cls.normalize_url(url1) == cls.normalize_url(url2))

        Compare two repo URLs for identity, ignoring incidental differences.
        
product/gradle-plugin/src/main/python/pip/_internal/vcs/versioncontrol.py