Function check_event


def check_event(self, *choices)


No description yet.

Mentioned in


Lines 94-106 in lib3/yaml/

def check_event(self, *choices):
    # Check the type of the next event.
    if self.current_event is None:
        if self.state:
            self.current_event = self.state()
    if self.current_event is not None:
        if not choices:
            return True
        for choice in choices:
            if isinstance(self.current_event, choice):
                return True
    return False

Add Discussion as Guest

Log in