Lines Matching refs:stdin
657 stdin=None, stdout=None, stderr=None, argument
696 self.stdin = None
728 errread, errwrite) = self._get_handles(stdin, stdout, stderr)
753 self.stdin = io.open(p2cwrite, 'wb', bufsize)
755 self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
778 for f in filter(None, (self.stdin, self.stdout, self.stderr)):
786 if stdin == PIPE:
828 if self.stdin:
829 self.stdin.close()
873 self.stdin.write(input)
886 self.stdin.close()
920 [self.stdin, self.stdout, self.stderr].count(None) >= 2):
923 if self.stdin:
1013 def _get_handles(self, stdin, stdout, stderr): argument
1017 if stdin is None and stdout is None and stderr is None:
1024 if stdin is None:
1030 elif stdin == PIPE:
1033 elif stdin == DEVNULL:
1035 elif isinstance(stdin, int):
1036 p2cread = msvcrt.get_osfhandle(stdin)
1039 p2cread = msvcrt.get_osfhandle(stdin.fileno())
1260 if self.stdin:
1329 def _get_handles(self, stdin, stdout, stderr): argument
1337 if stdin is None:
1339 elif stdin == PIPE:
1341 elif stdin == DEVNULL:
1343 elif isinstance(stdin, int):
1344 p2cread = stdin
1347 p2cread = stdin.fileno()
1634 if self.stdin and not self._communication_started:
1638 self.stdin.flush()
1643 self.stdin.close()
1669 if self.stdin and input:
1670 selector.register(self.stdin, selectors.EVENT_WRITE)
1688 if key.fileobj is self.stdin:
1734 if self.stdin and self._input is None:
1738 self._input = self._input.encode(self.stdin.encoding,
1739 self.stdin.errors)