def write(data):
    """  Write data to STDOUT """
    if not isinstance(data, str):
        data = json.dumps(data)

    sys.stdout.write(data)

    if not data.endswith('\n'):
        sys.stdout.write('\n')

    try:
        sys.stdout.flush()
    except __HOLE__:
        sys.exit()
dataset/ETHPy150Open srusskih/SublimeJEDI/sublime_jedi/daemon.py/write