def _proxy_addr(self):
        """
        Return proxy address to connect to as tuple object
        """
        proxy_type, proxy_addr, proxy_port, rdns, username, password = self.proxy
        proxy_port = proxy_port or DEFAULT_PORTS.get(proxy_type)
        if not proxy_port:
            raise GeneralProxyError("Invalid proxy type")
        return proxy_addr, proxy_port
def _proxy_addr ( self ) : proxy_type , proxy_addr , proxy_port , rdns , username , password = self . proxy proxy_port = proxy_port or DEFAULT_PORTS . get ( proxy_type ) if not proxy_port : raise GeneralProxyError ( "Invalid proxy type" ) return proxy_addr , proxy_port
Return proxy address to connect to as tuple object