parameters: (stream, Loader=Loader)
docstring: Scan a YAML stream and produce scanning tokens.
docstring_summary: Scan a YAML stream and produce scanning tokens.
docstring_tokens: Scan a YAML stream and produce scanning tokens .
function: def scan(stream, Loader=Loader):
      """
      Scan a YAML stream and produce scanning tokens.
      """
      loader = Loader(stream)
      try:
          while loader.check_token():
              yield loader.get_token()
      finally:
          loader.dispose()
function_tokens: def scan ( stream , Loader = Loader ) : loader = Loader ( stream ) try : while loader . check_token ( ) : yield loader . get_token ( ) finally : loader . dispose ( )