def signal_number(value):
    result = None
    try:
        result = int(value)
    except (ValueError, TypeError):
        result = getattr(signal, 'SIG'+value, None)
    try:
        result = int(result)
        return result
    except (ValueError, __HOLE__):
        raise ValueError('value %s is not a signal name/number' % value)
dataset/ETHPy150Open XiaoMi/minos/supervisor/supervisor/datatypes.py/signal_number