1a5f9918aSopenharmony_ci 2a5f9918aSopenharmony_ci__all__ = ['BaseDumper', 'SafeDumper', 'Dumper'] 3a5f9918aSopenharmony_ci 4a5f9918aSopenharmony_cifrom .emitter import * 5a5f9918aSopenharmony_cifrom .serializer import * 6a5f9918aSopenharmony_cifrom .representer import * 7a5f9918aSopenharmony_cifrom .resolver import * 8a5f9918aSopenharmony_ci 9a5f9918aSopenharmony_ciclass BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): 10a5f9918aSopenharmony_ci 11a5f9918aSopenharmony_ci def __init__(self, stream, 12a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 13a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 14a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 15a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 16a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 17a5f9918aSopenharmony_ci Emitter.__init__(self, stream, canonical=canonical, 18a5f9918aSopenharmony_ci indent=indent, width=width, 19a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break) 20a5f9918aSopenharmony_ci Serializer.__init__(self, encoding=encoding, 21a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 22a5f9918aSopenharmony_ci version=version, tags=tags) 23a5f9918aSopenharmony_ci Representer.__init__(self, default_style=default_style, 24a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 25a5f9918aSopenharmony_ci Resolver.__init__(self) 26a5f9918aSopenharmony_ci 27a5f9918aSopenharmony_ciclass SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver): 28a5f9918aSopenharmony_ci 29a5f9918aSopenharmony_ci def __init__(self, stream, 30a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 31a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 32a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 33a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 34a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 35a5f9918aSopenharmony_ci Emitter.__init__(self, stream, canonical=canonical, 36a5f9918aSopenharmony_ci indent=indent, width=width, 37a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break) 38a5f9918aSopenharmony_ci Serializer.__init__(self, encoding=encoding, 39a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 40a5f9918aSopenharmony_ci version=version, tags=tags) 41a5f9918aSopenharmony_ci SafeRepresenter.__init__(self, default_style=default_style, 42a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 43a5f9918aSopenharmony_ci Resolver.__init__(self) 44a5f9918aSopenharmony_ci 45a5f9918aSopenharmony_ciclass Dumper(Emitter, Serializer, Representer, Resolver): 46a5f9918aSopenharmony_ci 47a5f9918aSopenharmony_ci def __init__(self, stream, 48a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 49a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 50a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 51a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 52a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 53a5f9918aSopenharmony_ci Emitter.__init__(self, stream, canonical=canonical, 54a5f9918aSopenharmony_ci indent=indent, width=width, 55a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break) 56a5f9918aSopenharmony_ci Serializer.__init__(self, encoding=encoding, 57a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 58a5f9918aSopenharmony_ci version=version, tags=tags) 59a5f9918aSopenharmony_ci Representer.__init__(self, default_style=default_style, 60a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 61a5f9918aSopenharmony_ci Resolver.__init__(self) 62a5f9918aSopenharmony_ci 63