def unsignedByte(xc, p, source):
    try:
        i = _INT(source)
        if i <= 255 and i >= 0: return i
    except ValueError:
        pass
    raise FORG0001
dataset/ETHPy150Open Arelle/Arelle/arelle/FunctionXs.py/unsignedByte/original