def hasstatus(self, status):
    'Return `True` if given status was set.'
    if isinstance(status, ComponentEvent):
        event = status.id
    elif (':' in status):
        event = status
    else:
        event = ComponentEvent(status, self).id
    return _events[event].is_set()
Return `True` if given status was set.
def hasstatus(self, status):
    
    if isinstance(status, ComponentEvent):
        event = status.id
    elif (':' in status):
        event = status
    else:
        event = ComponentEvent(status, self).id
    return _events[event].is_set()