From: W. Trevor King Date: Fri, 15 Apr 2011 23:07:14 +0000 (-0400) Subject: Cleanup libbe.util.subproc.Pipe docstring. X-Git-Tag: 1.1.0~227 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f0825c800c185338fecbf38d5b90b634a5cda015;p=be.git Cleanup libbe.util.subproc.Pipe docstring. --- 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