(section)
Creates a context manager corresponding to configured context output
Creates a context manager corresponding to configured context output
Creates a context manager corresponding to configured context output
def output(section):
    """Creates a context manager corresponding to configured context output"""
    target = outputs.get(section, str(config_output))
    if not target or target == "stdout":
        return StdOutput()
    elif callable(target):
        return CallOutput(target)
    else:
        return FileOutput(target, "w")
def output ( section ) : target = outputs . get ( section , str ( config_output ) ) if not target or target == "stdout" : return StdOutput ( ) elif callable ( target ) : return CallOutput ( target ) else : return FileOutput ( target , "w" )