

def __init__(self, server, protocol, port, authToken, cfg):
    if (type(authToken[2]) is not list):
        authToken = (authToken[0], authToken[1], [(authToken[2], authToken[3])], None)
    elif (len(authToken) == 3):
        authToken = (authToken + (None,))
    netclient.NetworkRepositoryClient.__init__(self, cfg=cfg)
    proxy = ShimServerProxy(server, protocol, port, authToken, systemId=self.c.systemId)
    self.c = FakeServerCache(proxy, cfg=cfg)

dataset/ETHPy150Open sassoftware/conary/conary/repository/shimclient.py ShimNetClient.__init__/original