__all__ = ['BaseLoader', 'FullLoader', 'SafeLoader', 'Loader', 'UnsafeLoader'] from .reader import * from .scanner import * from .parser import * from .composer import * from .constructor import * from .resolver import * class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver): def __init__(self, stream): Reader.__init__(self, stream) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) BaseConstructor.__init__(self) BaseResolver.__init__(self) class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver): def __init__(self, stream): Reader.__init__(self, stream) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) FullConstructor.__init__(self) Resolver.__init__(self) class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver): def __init__(self, stream): Reader.__init__(self, stream) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) SafeConstructor.__init__(self) Resolver.__init__(self) class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver): def __init__(self, stream): Reader.__init__(self, stream) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) Constructor.__init__(self) Resolver.__init__(self) # UnsafeLoader is the same as Loader (which is and was always unsafe on # untrusted input). Use of either Loader or UnsafeLoader should be rare, since # FullLoad should be able to load almost all YAML safely. Loader is left intact # to ensure backwards compatibility. class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver): def __init__(self, stream): Reader.__init__(self, stream) Scanner.__init__(self) Parser.__init__(self) Composer.__init__(self) Constructor.__init__(self) Resolver.__init__(self)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 12.86 KB | 0644 |
|
_yaml.cpython-38-x86_64-linux-gnu.so | File | 239.84 KB | 0755 |
|
composer.py | File | 4.77 KB | 0644 |
|
constructor.py | File | 27.97 KB | 0644 |
|
cyaml.py | File | 3.76 KB | 0644 |
|
dumper.py | File | 2.77 KB | 0644 |
|
emitter.py | File | 42 KB | 0644 |
|
error.py | File | 2.47 KB | 0644 |
|
events.py | File | 2.39 KB | 0644 |
|
loader.py | File | 2.01 KB | 0644 |
|
nodes.py | File | 1.41 KB | 0644 |
|
parser.py | File | 24.9 KB | 0644 |
|
reader.py | File | 6.63 KB | 0644 |
|
representer.py | File | 13.85 KB | 0644 |
|
resolver.py | File | 8.79 KB | 0644 |
|
scanner.py | File | 50.08 KB | 0644 |
|
serializer.py | File | 4.07 KB | 0644 |
|
tokens.py | File | 2.51 KB | 0644 |
|