def gamma_to_lin(value, gamma):
    if not isinstance(value, (list, tuple)):
        return _gamma_to_lin(value, gamma)
    return [_gamma_to_lin(val, gamma) for val in value]
Full test using a custom server limiting number of connections.
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/colors_helper.py/gamma_to_lin--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_policies.py/ThrottlingTestCase.test_limit