1a5f9918aSopenharmony_ci 2a5f9918aSopenharmony_ci__all__ = [ 3a5f9918aSopenharmony_ci 'CBaseLoader', 'CSafeLoader', 'CFullLoader', 'CUnsafeLoader', 'CLoader', 4a5f9918aSopenharmony_ci 'CBaseDumper', 'CSafeDumper', 'CDumper' 5a5f9918aSopenharmony_ci] 6a5f9918aSopenharmony_ci 7a5f9918aSopenharmony_cifrom yaml._yaml import CParser, CEmitter 8a5f9918aSopenharmony_ci 9a5f9918aSopenharmony_cifrom .constructor import * 10a5f9918aSopenharmony_ci 11a5f9918aSopenharmony_cifrom .serializer import * 12a5f9918aSopenharmony_cifrom .representer import * 13a5f9918aSopenharmony_ci 14a5f9918aSopenharmony_cifrom .resolver import * 15a5f9918aSopenharmony_ci 16a5f9918aSopenharmony_ciclass CBaseLoader(CParser, BaseConstructor, BaseResolver): 17a5f9918aSopenharmony_ci 18a5f9918aSopenharmony_ci def __init__(self, stream): 19a5f9918aSopenharmony_ci CParser.__init__(self, stream) 20a5f9918aSopenharmony_ci BaseConstructor.__init__(self) 21a5f9918aSopenharmony_ci BaseResolver.__init__(self) 22a5f9918aSopenharmony_ci 23a5f9918aSopenharmony_ciclass CSafeLoader(CParser, SafeConstructor, Resolver): 24a5f9918aSopenharmony_ci 25a5f9918aSopenharmony_ci def __init__(self, stream): 26a5f9918aSopenharmony_ci CParser.__init__(self, stream) 27a5f9918aSopenharmony_ci SafeConstructor.__init__(self) 28a5f9918aSopenharmony_ci Resolver.__init__(self) 29a5f9918aSopenharmony_ci 30a5f9918aSopenharmony_ciclass CFullLoader(CParser, FullConstructor, Resolver): 31a5f9918aSopenharmony_ci 32a5f9918aSopenharmony_ci def __init__(self, stream): 33a5f9918aSopenharmony_ci CParser.__init__(self, stream) 34a5f9918aSopenharmony_ci FullConstructor.__init__(self) 35a5f9918aSopenharmony_ci Resolver.__init__(self) 36a5f9918aSopenharmony_ci 37a5f9918aSopenharmony_ciclass CUnsafeLoader(CParser, UnsafeConstructor, Resolver): 38a5f9918aSopenharmony_ci 39a5f9918aSopenharmony_ci def __init__(self, stream): 40a5f9918aSopenharmony_ci CParser.__init__(self, stream) 41a5f9918aSopenharmony_ci UnsafeConstructor.__init__(self) 42a5f9918aSopenharmony_ci Resolver.__init__(self) 43a5f9918aSopenharmony_ci 44a5f9918aSopenharmony_ciclass CLoader(CParser, Constructor, Resolver): 45a5f9918aSopenharmony_ci 46a5f9918aSopenharmony_ci def __init__(self, stream): 47a5f9918aSopenharmony_ci CParser.__init__(self, stream) 48a5f9918aSopenharmony_ci Constructor.__init__(self) 49a5f9918aSopenharmony_ci Resolver.__init__(self) 50a5f9918aSopenharmony_ci 51a5f9918aSopenharmony_ciclass CBaseDumper(CEmitter, BaseRepresenter, BaseResolver): 52a5f9918aSopenharmony_ci 53a5f9918aSopenharmony_ci def __init__(self, stream, 54a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 55a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 56a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 57a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 58a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 59a5f9918aSopenharmony_ci CEmitter.__init__(self, stream, canonical=canonical, 60a5f9918aSopenharmony_ci indent=indent, width=width, encoding=encoding, 61a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break, 62a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 63a5f9918aSopenharmony_ci version=version, tags=tags) 64a5f9918aSopenharmony_ci Representer.__init__(self, default_style=default_style, 65a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 66a5f9918aSopenharmony_ci Resolver.__init__(self) 67a5f9918aSopenharmony_ci 68a5f9918aSopenharmony_ciclass CSafeDumper(CEmitter, SafeRepresenter, Resolver): 69a5f9918aSopenharmony_ci 70a5f9918aSopenharmony_ci def __init__(self, stream, 71a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 72a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 73a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 74a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 75a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 76a5f9918aSopenharmony_ci CEmitter.__init__(self, stream, canonical=canonical, 77a5f9918aSopenharmony_ci indent=indent, width=width, encoding=encoding, 78a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break, 79a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 80a5f9918aSopenharmony_ci version=version, tags=tags) 81a5f9918aSopenharmony_ci SafeRepresenter.__init__(self, default_style=default_style, 82a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 83a5f9918aSopenharmony_ci Resolver.__init__(self) 84a5f9918aSopenharmony_ci 85a5f9918aSopenharmony_ciclass CDumper(CEmitter, Serializer, Representer, Resolver): 86a5f9918aSopenharmony_ci 87a5f9918aSopenharmony_ci def __init__(self, stream, 88a5f9918aSopenharmony_ci default_style=None, default_flow_style=False, 89a5f9918aSopenharmony_ci canonical=None, indent=None, width=None, 90a5f9918aSopenharmony_ci allow_unicode=None, line_break=None, 91a5f9918aSopenharmony_ci encoding=None, explicit_start=None, explicit_end=None, 92a5f9918aSopenharmony_ci version=None, tags=None, sort_keys=True): 93a5f9918aSopenharmony_ci CEmitter.__init__(self, stream, canonical=canonical, 94a5f9918aSopenharmony_ci indent=indent, width=width, encoding=encoding, 95a5f9918aSopenharmony_ci allow_unicode=allow_unicode, line_break=line_break, 96a5f9918aSopenharmony_ci explicit_start=explicit_start, explicit_end=explicit_end, 97a5f9918aSopenharmony_ci version=version, tags=tags) 98a5f9918aSopenharmony_ci Representer.__init__(self, default_style=default_style, 99a5f9918aSopenharmony_ci default_flow_style=default_flow_style, sort_keys=sort_keys) 100a5f9918aSopenharmony_ci Resolver.__init__(self) 101a5f9918aSopenharmony_ci 102