コード例 #1
0
ファイル: marked_yaml.py プロジェクト: jakebolewski/hashdist
 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)
コード例 #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)
コード例 #3
0
ファイル: marked_yaml.py プロジェクト: jakebolewski/hashdist
 def construct_yaml_int(self, node):
     obj = SafeConstructor.construct_yaml_int(self, node)
     return int_node(obj, node.start_mark, node.end_mark)
コード例 #4
0
ファイル: marked_yaml.py プロジェクト: jakebolewski/hashdist
 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)
コード例 #5
0
ファイル: marked_yaml.py プロジェクト: jakebolewski/hashdist
 def construct_yaml_seq(self, node):
     obj, = SafeConstructor.construct_yaml_seq(self, node)
     return list_node(obj, node.start_mark, node.end_mark)
コード例 #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)
コード例 #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)
コード例 #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)