Function unsafe_load

Synopsis

def unsafe_load(stream)

Description

Parse the first YAML document in a stream and produce the corresponding Python object.

Resolve all tags, even those known to be unsafe on untrusted input.

Source

Lines 174-183 in lib3/yaml/__init__.py.

def unsafe_load(stream):
    """
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    """
    return load(stream, UnsafeLoader)






Add Discussion as Guest

Log in