(stream, Loader=Loader)
Scan a YAML stream and produce scanning tokens.
Scan a YAML stream and produce scanning tokens.
Scan a YAML stream and produce scanning tokens .
def scan(stream, Loader=Loader):
    # type: (StreamTextType, Any) -> Any
    """
    Scan a YAML stream and produce scanning tokens.
    """
    loader = Loader(stream)
    try:
        while loader.scanner.check_token():
            yield loader.scanner.get_token()
    finally:
        loader._parser.dispose()
def scan ( stream , Loader = Loader ) : # type: (StreamTextType, Any) -> Any loader = Loader ( stream ) try : while loader . scanner . check_token ( ) : yield loader . scanner . get_token ( ) finally : loader . _parser . dispose ( )