def __init__(self, stream, filecaption): Reader.__init__(self, stream, filecaption) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) SafeConstructor.__init__(self) Resolver.__init__(self)
def construct_yaml_int(self, node): obj = SafeConstructor.construct_yaml_int(self, node) return int_node(obj, node.start_mark, node.end_mark)
def construct_yaml_str(self, node): obj = SafeConstructor.construct_scalar(self, node) assert isinstance(obj, unicode) return unicode_node(obj, node.start_mark, node.end_mark)
def construct_yaml_seq(self, node): obj, = SafeConstructor.construct_yaml_seq(self, node) return list_node(obj, node.start_mark, node.end_mark)