MCPcopy Create free account
hub / github.com/pyinvoke/invoke / close_proc_stdin

Method close_proc_stdin

invoke/runners.py:1323–1333  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1321 raise
1322
1323 def close_proc_stdin(self) -> None:
1324 if self.using_pty:
1325 # there is no working scenario to tell the process that stdin
1326 # closed when using pty
1327 raise SubprocessPipeError("Cannot close stdin when pty=True")
1328 elif self.process and self.process.stdin:
1329 self.process.stdin.close()
1330 else:
1331 raise SubprocessPipeError(
1332 "Unable to close missing subprocess or stdin!"
1333 )
1334
1335 def start(self, command: str, shell: str, env: Dict[str, Any]) -> None:
1336 if self.using_pty:

Calls 1

SubprocessPipeErrorClass · 0.85

Tested by

no test coverage detected