

def __init__(self, uri, transport=None, encoding=None, verbose=None, allow_none=0):
    (utype, uri) = splittype(uri)
    if (utype not in ('http', 'https')):
        raise IOError('Unsupported JSONRPC protocol')
    (self.__host, self.__handler) = splithost(uri)
    if (not self.__handler):
        self.__handler = '/RPC2'
    if (transport is None):
        if (utype == 'https'):
            transport = SafeTransport()
        else:
            transport = Transport()
    self.__transport = transport
    self.__encoding = encoding
    self.__verbose = verbose
    self.__allow_none = allow_none

dataset/ETHPy150Open circuits/circuits/tests/web/jsonrpclib.py ServerProxy.__init__/original