Searched refs:add_representer (Results 1 – 4 of 4) sorted by relevance
/third_party/PyYAML/lib/yaml/ |
D | representer.py | 66 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__.py | 329 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/ |
D | build_cleaner.py | 38 yaml.add_representer(collections.OrderedDict, repr_ordered_dict)
|
/third_party/PyYAML/tests/lib/ |
D | test_constructor.py | 56 yaml.add_representer(MyTestClass1, represent1, Dumper=MyDumper)
|