def __init__(self, data, url):
        """
        Initialise an instance with the Unicode page contents and the URL they
        came from.
        """
        self.data = data
        self.base_url = self.url = url
        m = self._base.search(self.data)
        if m:
            self.base_url = m.group(1)

        Initialise an instance with the Unicode page contents and the URL they
        came from.
        
product/gradle-plugin/src/main/python/pip/_vendor/distlib/locators.py