Package CedarBackup2 :: Module util :: Class Pipe
[hide private]
[frames] | no frames]

Class Pipe

source code

      object --+    
               |    
subprocess.Popen --+
                   |
                  Pipe

Specialized pipe class for use by executeCommand.

The executeCommand function needs a specialized way of interacting with a pipe. First, executeCommand only reads from the pipe, and never writes to it. Second, executeCommand needs a way to discard all output written to stderr, as a means of simulating the shell 2>/dev/null construct.

Instance Methods [hide private]
 
__init__(self, cmd, bufsize=-1, ignoreStderr=False)
Create new Popen instance.
source code

Inherited from subprocess.Popen: __del__, communicate, kill, pipe_cloexec, poll, send_signal, terminate, wait

Inherited from subprocess.Popen (private): _close_fds, _communicate, _communicate_with_poll, _communicate_with_select, _execute_child, _find_w9xpopen, _get_handles, _handle_exitstatus, _internal_poll, _make_inheritable, _readerthread, _set_cloexec_flag, _translate_newlines

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from subprocess.Popen (private): _child_created

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmd, bufsize=-1, ignoreStderr=False)
(Constructor)

source code 

Create new Popen instance.

Overrides: object.__init__
(inherited documentation)