def get_adapter(self, url):
        """Returns the appropriate connnection adapter for the given URL."""
        for (prefix, adapter) in self.adapters.items():

            if url.lower().startswith(prefix):
                return adapter

        # Nothing matches :-/
        raise InvalidSchema("No connection adapters were found for '%s'" % url)
dataset/ETHPy150Open Bolton-and-Menk-GIS/restapi/restapi/requests/sessions.py/Session.get_adapter/original