Home
last modified time | relevance | path

Searched refs:add_constructor (Results 1 – 6 of 6) sorted by relevance

/external/python/pyyaml/lib/yaml/
Dconstructor.py160 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__.py302 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)
/external/python/pyyaml/tests/lib/
Dtest_structure.py157 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)
Dtest_constructor.py54 yaml.add_constructor("!tag1", construct1, Loader=MyLoader)
55 yaml.add_constructor("!MyTime", my_time_constructor, Loader=MyLoader)
Dtest_emitter.py89 EventsLoader.add_constructor(None, EventsLoader.construct_event)
/external/python/pyyaml/
DCHANGES58 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