Searched refs:MyLoader (Results 1 – 5 of 5) sorted by relevance
/third_party/PyYAML/tests/lib/ |
D | test_resolver.py | 27 global MyLoader, MyDumper 29 class MyLoader(yaml.Loader): class 35 Loader=MyLoader, Dumper=MyDumper) 37 Loader=MyLoader, Dumper=MyDumper) 39 Loader=MyLoader, Dumper=MyDumper) 41 Loader=MyLoader, Dumper=MyDumper) 43 Loader=MyLoader, Dumper=MyDumper) 45 return MyLoader, MyDumper 64 nodes1 = list(yaml.compose_all(file.read(), Loader=MyLoader))
|
D | test_structure.py | 145 global MyLoader 147 class MyLoader(yaml.Loader): class 157 MyLoader.add_constructor('tag:yaml.org,2002:map', MyLoader.construct_mapping) 158 MyLoader.add_constructor(None, MyLoader.construct_undefined) 183 native1 = list(yaml.load_all(file, Loader=MyLoader))
|
D | test_constructor.py | 17 … global MyLoader, MyDumper, MyTestClass1, MyTestClass2, MyTestClass3, YAMLObject1, YAMLObject2, \ 22 class MyLoader(yaml.Loader): class 54 yaml.add_constructor("!tag1", construct1, Loader=MyLoader) 55 yaml.add_constructor("!MyTime", my_time_constructor, Loader=MyLoader) 59 yaml_loader = MyLoader 85 yaml_loader = MyLoader 98 yaml_loader = MyLoader 261 native1 = list(yaml.load_all(file, Loader=MyLoader))
|
D | test_representer.py | 16 native2 = yaml.load(output, Loader=test_constructor.MyLoader)
|
/third_party/python/Lib/lib2to3/tests/ |
D | test_parser.py | 110 class MyLoader: class 115 __spec__ = importlib.util.spec_from_loader(modname, MyLoader())
|