# Path: uamobile/cidr.py
# def get_ip_addrs(carrier):
# def get_ip(carrier, _memo={}):


from uamobile.cidr import IP, get_ip
from uamobile.factory.docomo import *
from uamobile.factory.ezweb import *
from uamobile.factory.softbank import *
from uamobile.factory.willcom import *

            if not isinstance(ips, (list, tuple)):
                ips = [ips]
            for addr in ips:
                self.add_ip(carrier, addr)

        # factary classes
        self.docomo_factory = docomo_factory or DoCoMoUserAgentFactory
        self.ezweb_factory = ezweb_factory or EZwebUserAgentFactory
        self.softbank_factory = softbank_factory or SoftBankUserAgentFactory
        self.willcom_factory = willcom_factory or WillcomUserAgentFactory

        if proxy_ips:
            if not isinstance(proxy_ips, (list, tuple)):
                proxy_ips = [proxy_ips]
        self._proxy_ips = proxy_ips

    def get_proxy_ips(self):
        hosts = []
        if self._proxy_ips:
            for addr in self._proxy_ips:
                try:
                    hosts.append(IP(addr))
                except ValueError:
                    raise ValueError('"%s" is not valid reverse proxy address' % addr)

        return hosts

    def get_ip(self, carrier):
        carrier = normalize_carrier_name(carrier)

# Path: uamobile/cidr.py
# def get_ip_addrs(carrier):
# def get_ip(carrier, _memo={}):


# Path: uamobile/context.py
from uamobile.cidr import IP, get_ip
from uamobile.factory.docomo import *
from uamobile.factory.ezweb import *
from uamobile.factory.softbank import *
from uamobile.factory.willcom import *


            if not isinstance(ips, (list, tuple)):
                ips = [ips]
            for addr in ips:
                self.add_ip(carrier, addr)

        # factary classes
        self.docomo_factory = docomo_factory or DoCoMoUserAgentFactory
        self.ezweb_factory = ezweb_factory or EZwebUserAgentFactory
        self.softbank_factory = softbank_factory or SoftBankUserAgentFactory
        self.willcom_factory = willcom_factory or WillcomUserAgentFactory

        if proxy_ips:
            if not isinstance(proxy_ips, (list, tuple)):
                proxy_ips = [proxy_ips]
        self._proxy_ips = proxy_ips

    def get_proxy_ips(self):
        hosts = []
        if self._proxy_ips:
            for addr in self._proxy_ips:
                try:
                    hosts.append(IP(addr))
                except ValueError:
                    raise ValueError('"%s" is not valid reverse proxy address' % addr)

        return hosts

    def get_ip(self, carrier):
        carrier = normalize_carrier_name(carrier)

        return get_ip(carrier) + self._extra_ips[carrier]