Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def construct_yaml_int(self, node):
     obj = SafeConstructor.construct_yaml_int(self, node)
     return int_node(obj, node.start_mark, node.end_mark)
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 def construct_yaml_seq(self, node):
     obj, = SafeConstructor.construct_yaml_seq(self, node)
     return list_node(obj, node.start_mark, node.end_mark)
Ejemplo n.º 6
0
 def construct_yaml_int(self, node):
     obj = SafeConstructor.construct_yaml_int(self, node)
     return int_node(obj, node.start_mark, node.end_mark)
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
 def construct_yaml_seq(self, node):
     obj, = SafeConstructor.construct_yaml_seq(self, node)
     return list_node(obj, node.start_mark, node.end_mark)