def popen_nonblock(*args, **kwargs):
 proc = popen_sp(*args, **kwargs)
 if proc.stdin:
  proc.stdin = pipebuf.NonBlockBufferedWriter(proc.stdin)
 if proc.stdout:
  proc.stdout = pipebuf.NonBlockBufferedReader(proc.stdout)
 if proc.stderr:
  proc.stderr = pipebuf.NonBlockBufferedReader(proc.stderr)
 return proc

def popen_nonblock ( * args , ** kwargs ) : proc = popen_sp ( * args , ** kwargs ) if proc . stdin : proc . stdin = pipebuf . NonBlockBufferedWriter ( proc . stdin ) if proc . stdout : proc . stdout = pipebuf . NonBlockBufferedReader ( proc . stdout ) if proc . stderr : proc . stderr = pipebuf . NonBlockBufferedReader ( proc . stderr ) return proc
create a process in the same way as popen_sp .