def colour_index_func(s, maxval=0x7F):
    try:
        value = int(s, 0)
    except ValueError:
        return None
    if not (0 <= maxval <= value):
        return None
    return value
dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/xlwt3/Style.py/colour_index_func/swapped operands of `<=`