def rotation_func(s):
    try:
        value = int(s, 0)
    except ValueError:
        return None
    if not (-90 <= value <= 90):
        raise EasyXFCallerError("rotation %d: should be -90 to +90 degrees" % value)
    if 0 < value:
        value = 90 - value # encode as 91 to 180 (clockwise)
    return value
dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/xlwt3/Style.py/rotation_func/swapped operands of `<`