Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)
Esempio 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)