def output(stream):
    while True:
        content = stream.read(1024)
        if len(content) == 0: break
        sys.stdout.write(content)
Write the contents of the given stream to stdout.
dataset/ETHPy150Open splunk/splunk-sdk-python/examples/job.py/output