Function check_event
Synopsis
def check_event(self, *choices)
Description
No description yet.
Mentioned in
- Documentation / Loader
Source
Lines 94-106 in lib3/yaml/parser.py.
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