def load_all(stream, Loader=None):
    """
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    """
    if Loader is None:
        load_warning('load_all')
        Loader = FullLoader

    loader = Loader(stream)
    try:
        while loader.check_data():
            yield loader.get_data()
    finally:
        loader.dispose()
def load_all ( stream , Loader = None ) : if Loader is None : load_warning ( 'load_all' ) Loader = FullLoader loader = Loader ( stream ) try : while loader . check_data ( ) : yield loader . get_data ( ) finally : loader . dispose ( )
Parse all YAML documents in a stream
    and produce corresponding Python objects.