Searched refs:add_constructor (Results 1 – 6 of 6) sorted by relevance
/third_party/PyYAML/lib/yaml/ |
D | constructor.py | 160 def add_constructor(cls, tag, constructor): member in BaseConstructor 431 SafeConstructor.add_constructor( 435 SafeConstructor.add_constructor( 439 SafeConstructor.add_constructor( 443 SafeConstructor.add_constructor( 447 SafeConstructor.add_constructor( 451 SafeConstructor.add_constructor( 455 SafeConstructor.add_constructor( 459 SafeConstructor.add_constructor( 463 SafeConstructor.add_constructor( [all …]
|
D | __init__.py | 302 def add_constructor(tag, constructor, Loader=None): function 309 loader.Loader.add_constructor(tag, constructor) 310 loader.FullLoader.add_constructor(tag, constructor) 311 loader.UnsafeLoader.add_constructor(tag, constructor) 313 Loader.add_constructor(tag, constructor) 356 loader.add_constructor(cls.yaml_tag, cls.from_yaml) 358 cls.yaml_loader.add_constructor(cls.yaml_tag, cls.from_yaml)
|
/third_party/PyYAML/tests/lib/ |
D | test_structure.py | 157 MyLoader.add_constructor('tag:yaml.org,2002:map', MyLoader.construct_mapping) 158 MyLoader.add_constructor(None, MyLoader.construct_undefined) 173 MyCanonicalLoader.add_constructor('tag:yaml.org,2002:map', MyCanonicalLoader.construct_mapping) 174 MyCanonicalLoader.add_constructor(None, MyCanonicalLoader.construct_undefined)
|
D | test_constructor.py | 54 yaml.add_constructor("!tag1", construct1, Loader=MyLoader) 55 yaml.add_constructor("!MyTime", my_time_constructor, Loader=MyLoader)
|
D | test_emitter.py | 89 EventsLoader.add_constructor(None, EventsLoader.construct_event)
|
/third_party/PyYAML/ |
D | CHANGES | 58 but several methods like add_constructor still used the old default 60 https://github.com/yaml/pyyaml/pull/287 -- Change default loader for yaml.add_constructor
|