(c, raw=False, *k, **kw)
| 394 | |
| 395 | |
| 396 | def read_pipe_lines(c, raw=False, *k, **kw): |
| 397 | if verbose: |
| 398 | sys.stderr.write('Reading pipe: {}\n'.format(' '.join(c))) |
| 399 | |
| 400 | p = subprocess.Popen(c, stdout=subprocess.PIPE, *k, **kw) |
| 401 | pipe = p.stdout |
| 402 | lines = pipe.readlines() |
| 403 | if not raw: |
| 404 | lines = [decode_text_stream(line) for line in lines] |
| 405 | if pipe.close() or p.wait(): |
| 406 | die('Command failed: {}'.format(' '.join(c))) |
| 407 | return lines |
| 408 | |
| 409 | |
| 410 | def p4_read_pipe_lines(c, *k, **kw): |
no test coverage detected