Home
last modified time | relevance | path

Searched refs:add_representer (Results 1 – 4 of 4) sorted by relevance

/third_party/PyYAML/lib/yaml/
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(dict,
[all …]
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/grpc/tools/buildgen/
Dbuild_cleaner.py38 yaml.add_representer(collections.OrderedDict, repr_ordered_dict)
/third_party/PyYAML/tests/lib/
Dtest_constructor.py56 yaml.add_representer(MyTestClass1, represent1, Dumper=MyDumper)