Lines Matching refs:stdin
335 stdin=None, stdout=None, stderr=None, argument
349 if close_fds and (stdin is not None or stdout is not None or
362 self.stdin = None
386 errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
419 self.stdin = os.fdopen(p2cwrite, 'wb', bufsize)
463 if [self.stdin, self.stdout, self.stderr].count(None) >= 2:
466 if self.stdin:
469 self.stdin.write(input)
473 self.stdin.close()
496 def _get_handles(self, stdin, stdout, stderr): argument
501 if stdin is None and stdout is None and stderr is None:
508 if stdin is None:
512 elif stdin == PIPE:
514 elif isinstance(stdin, (int, long)):
515 p2cread = msvcrt.get_osfhandle(stdin)
518 p2cread = msvcrt.get_osfhandle(stdin.fileno())
522 if stdin == PIPE:
719 if self.stdin:
722 self.stdin.write(input)
735 self.stdin.close()
794 def _get_handles(self, stdin, stdout, stderr): argument
803 if stdin is None:
805 elif stdin == PIPE:
808 elif isinstance(stdin, (int, long)):
809 p2cread = stdin
812 p2cread = stdin.fileno()
1116 if self.stdin:
1119 self.stdin.flush()
1121 self.stdin.close()
1164 if self.stdin and input:
1165 register_and_append(self.stdin, select.POLLOUT)
1215 if self.stdin and input:
1216 write_set.append(self.stdin)
1233 if self.stdin in wlist:
1236 bytes_written = os.write(self.stdin.fileno(), chunk)
1239 self.stdin.close()
1240 write_set.remove(self.stdin)
1246 self.stdin.close()
1247 write_set.remove(self.stdin)
1302 p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
1329 p2 = Popen('find "PROMPT"', stdin=p1.stdout, stdout=PIPE)