

def __init__(self, args, bufsize=0, *argss, **kwds):
    if subprocess_orig.mswindows:
        raise Exception('Greenified Popen not supported on Windows')
    self.args = args
    super().__init__(args, 0, *argss, **kwds)
    for attr in ('stdin', 'stdout', 'stderr'):
        pipe = getattr(self, attr)
        if ((pipe is not None) and (not (type(pipe) == FileObject))):
            wrapped_pipe = FileObject(pipe, pipe.mode, bufsize)
            setattr(self, attr, wrapped_pipe)

dataset/ETHPy150Open veegee/guv/guv/green/subprocess.py Popen.__init__/original