Home
last modified time | relevance | path

Searched refs:add_representer (Results 1 - 3 of 3) sorted by relevance

/third_party/PyYAML/lib/yaml/
H A Drepresenter.py66 def add_representer(cls, data_type, representer): member in BaseRepresenter
233 SafeRepresenter.add_representer(type(None),
236 SafeRepresenter.add_representer(str,
239 SafeRepresenter.add_representer(bytes,
242 SafeRepresenter.add_representer(bool,
245 SafeRepresenter.add_representer(int,
248 SafeRepresenter.add_representer(float,
251 SafeRepresenter.add_representer(list,
254 SafeRepresenter.add_representer(tuple,
257 SafeRepresenter.add_representer(dic
[all...]
H A D__init__.py329 def add_representer(data_type, representer, Dumper=Dumper): function
336 Dumper.add_representer(data_type, representer)
360 cls.yaml_dumper.add_representer(cls, cls.to_yaml)
/third_party/PyYAML/tests/lib/
H A Dtest_constructor.py56 yaml.add_representer(MyTestClass1, represent1, Dumper=MyDumper)

Completed in 2 milliseconds