MCPcopy Create free account
hub / github.com/git/git / read_pipe_full

Function read_pipe_full

git-p4.py:349–359  ·  view source on GitHub ↗

Read output from command. Returns a tuple of the return status, stdout text and stderr text.

(c, *k, **kw)

Source from the content-addressed store, hash-verified

347
348
349def read_pipe_full(c, *k, **kw):
350 """Read output from command. Returns a tuple of the return status, stdout
351 text and stderr text.
352 """
353 if verbose:
354 sys.stderr.write('Reading pipe: {}\n'.format(' '.join(c)))
355
356 p = subprocess.Popen(
357 c, stdout=subprocess.PIPE, stderr=subprocess.PIPE, *k, **kw)
358 out, err = p.communicate()
359 return (p.returncode, out, decode_text_stream(err))
360
361
362def read_pipe(c, ignore_error=False, raw=False, *k, **kw):

Callers 2

read_pipeFunction · 0.85
read_pipe_textFunction · 0.85

Calls 2

decode_text_streamFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected