class documentation

class SubprocessWrapper:

Constructor: SubprocessWrapper(proc)

View In Hierarchy

A socket-like object that talks to a subprocess via pipes.

Method __init__ Initialize a SubprocessWrapper.
Method can_read Check if there is data available to read.
Method close Close the subprocess and wait for it to terminate.
Instance Variable proc Undocumented
Instance Variable read Undocumented
Instance Variable write Undocumented
Property stderr Return the stderr stream of the subprocess.
def __init__(self, proc: subprocess.Popen[bytes]):

Initialize a SubprocessWrapper.

Parameters
proc:subprocess.Popen[bytes]Subprocess.Popen instance to wrap
def can_read(self) -> bool:

Check if there is data available to read.

Returns: True if data is available, False otherwise

def close(self, timeout: int | None = 60):

Close the subprocess and wait for it to terminate.

Parameters
timeout:int | NoneMaximum time to wait for subprocess to terminate (seconds)
Raises
GitProtocolErrorIf subprocess doesn't terminate within timeout
proc =

Undocumented

read =

Undocumented

write =

Undocumented

stderr: IO[bytes] | None =

Return the stderr stream of the subprocess.