From f0825c800c185338fecbf38d5b90b634a5cda015 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 15 Apr 2011 19:07:14 -0400 Subject: [PATCH] Cleanup libbe.util.subproc.Pipe docstring. --- libbe/util/subproc.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libbe/util/subproc.py b/libbe/util/subproc.py index b10f84a..412ed36 100644 --- a/libbe/util/subproc.py +++ b/libbe/util/subproc.py @@ -82,14 +82,14 @@ def invoke(args, stdin=None, stdout=PIPE, stderr=PIPE, expect=(0,), return status, stdout, stderr class Pipe (object): - """ - Simple interface for executing POSIX-style pipes based on the - subprocess module. The only complication is the adaptation of - subprocess.Popen._comminucate to listen to the stderrs of all - processes involved in the pipe, as well as the terminal process' - stdout. There are two implementations of Pipe._communicate, one - for MS Windows, and one for POSIX systems. The MS Windows - implementation is currently untested. + """Simple interface for executing POSIX-style pipes. + + Based on the `subprocess` module. The only complication is the + adaptation of `subprocess.Popen._communicate` to listen to the + stderrs of all processes involved in the pipe, as well as the + terminal process' stdout. There are two implementations of + `Pipe._communicate`, one for MS Windows, and one for POSIX + systems. The MS Windows implementation is currently untested. >>> p = Pipe([['find', '/etc/'], ['grep', '^/etc/ssh$']]) >>> p.stdout -- 2.26.2