def __init__(self, cartodb_domain, host='cartodb.com', protocol='https', api_version=None, proxy_info=None, sql_api_version='v2', import_api_version='v1'):
        """
        :param cartodb_domain: Subdomain for API requests. It's called "cartodb_domain", but it's just a subdomain and doesn't have to live under cartodb.com
        :param host: Domain for API requests, even though it's called "host"
        :param protocol: Just use the default
        :param sql_api_version: Use default or 'v1' to avoid caching
        :param import_api_version: Only 'v1' is currently supported
        :param api_version: SQL API version, kept only for backward compatibility
        :param proxy_info: httplib2's ProxyInfo object or requests' proxy dict
        :return:
        """
        if api_version is None:
            api_version = sql_api_version
        self.resource_url = {'user': cartodb_domain, 'domain': host, 'protocol': protocol, 'api_version': api_version} % RESOURCE_URL
        self.imports_url = IMPORTS_URL % {'user': cartodb_domain, 'domain': host, 'protocol': protocol, 'api_version': import_api_version}
        self.host = host
        self.protocol = protocol
        self.api_version = api_version
        # For backwards compatibility, we need to support httplib2's ProxyInfo and requests' proxies objects
        # And we still need old-style ProxyInfo for the xAuth client
        if type(proxy_info) == httplib2.ProxyInfo:
            self.proxy_info = proxy_info
            self.proxies = proxyinfo2proxies(self.proxy_info)
        if type(proxy_info) == dict:
            self.proxies = proxy_info
            self.proxy_info = proxies2proxyinfo(self.proxies)
        else:
            self.proxy_info = None
            self.proxies = None
dataset/ETHPy150Open CartoDB/cartodb-python/cartodb/cartodb.py/CartoDBBase.__init__/swapped operands of `%`