Lines Matching defs:yaml
2 import yaml
6 import yaml.tokens
22 class MyLoader(yaml.Loader):
24 class MyDumper(yaml.Dumper):
54 yaml.add_constructor("!tag1", construct1, Loader=MyLoader)
55 yaml.add_constructor("!MyTime", my_time_constructor, Loader=MyLoader)
56 yaml.add_representer(MyTestClass1, represent1, Dumper=MyDumper)
58 class MyTestClass2(MyTestClass1, yaml.YAMLObject):
84 class YAMLObject1(yaml.YAMLObject):
97 class YAMLObject2(yaml.YAMLObject):
228 class MyFullLoader(yaml.FullLoader):
261 native1 = list(yaml.load_all(file, Loader=MyLoader))
290 yaml.load(file.read(), MyFullLoader)
291 except yaml.YAMLError as exc: