MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/utils/_process_posix.py:70–77  ·  view source on GitHub ↗

Arguments are used for pexpect calls.

(self, logfile=None, read_timeout=None, terminate_timeout=None)

Source from the content-addressed store, hash-verified

68 return self._sh
69
70 def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None):
71 """Arguments are used for pexpect calls."""
72 self.read_timeout = (ProcessHandler.read_timeout if read_timeout is
73 None else read_timeout)
74 self.terminate_timeout = (ProcessHandler.terminate_timeout if
75 terminate_timeout is None else
76 terminate_timeout)
77 self.logfile = sys.stdout if logfile is None else logfile
78
79 def getoutput(self, cmd):
80 """Run a command and return its stdout/stderr as a string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected