Package qm :: Module executable :: Class Filter
[hide private]
[frames] | no frames]

Class Filter

source code

   object --+            
            |            
   Executable --+        
                |        
TimeoutExecutable --+    
                    |    
 RedirectedExecutable --+
                        |
                       Filter

A 'FilterExecutable' feeds an input string to another proces.

The input string is provided to a child process via a pipe; the standard output and standard error streams from the child process are collected in the 'Filter'.

Instance Methods [hide private]
 
__init__(self, input, timeout=-1)
Create a new 'Filter'.
source code
 
_WriteStdin(self)
Write to the standard input pipe.
source code

Inherited from TimeoutExecutable: Run

Inherited from Executable: Kill, Spawn

Inherited from Executable (private): _CreateCommandLine, _GetChildPID

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, input, timeout=-1)
(Constructor)

source code 

Create a new 'Filter'.

'input' -- The string containing the input to provide to the child process.

'timeout' -- As for 'TimeoutExecutable.__init__'.

Overrides: object.__init__

_WriteStdin(self)

source code 

Write to the standard input pipe.

This implementation writes no data and closes the pipe.

Overrides: RedirectedExecutable._WriteStdin
(inherited documentation)