@staticmethod
        def write_to_stdout(b):
            try:
                return sys.stdout.buffer.write(b)
            except __HOLE__:
                # If stdout has been replaced, it may not have .buffer
                return sys.stdout.write(b.decode('ascii', 'replace'))
dataset/ETHPy150Open Calysto/metakernel/metakernel/pexpect.py/spawn.write_to_stdout