Part of twisted.internet View Source
| Function | getProcessOutput | Spawn a process and return its output as a deferred returning a string. |
| Function | getProcessValue | Spawn a process and return its exit code as a Deferred. |
| Function | getProcessOutputAndValue | No summary |
| Function | runWithWarningsSuppressed | Run the function f, but with some warnings suppressed.
|
| Function | suppressWarnings | Wrap f in a callable which suppresses the indicated
warnings before invoking f and unsuppresses them afterwards.
If f returns a Deferred, warnings will remain suppressed until the Deferred
fires.
|
| Function | _callProtocolWithDeferred | Undocumented |
| Class | _BackRelay | Undocumented |
| Class | _ValueGetter | Undocumented |
| Class | _EverythingGetter | Undocumented |
| Function | _resetWarningFilters | Undocumented |
| Parameters | executable | The file name to run and get the output of - the full path should be used. |
| args | the command line arguments to pass to the process; a sequence of strings. The first string should *NOT* be the executable's name. | |
| env | the environment variables to pass to the processs; a dictionary of strings. | |
| path | the path to run the subprocess in - defaults to the current directory. | |
| reactor | the reactor to use - defaults to the default reactor | |
| errortoo | if 1, capture stderr too |
f, but with some warnings suppressed.
| Parameters | suppressedWarnings | A list of arguments to pass to filterwarnings. Must be a sequence of 2-tuples (args, kwargs). |
| f | A callable, followed by its arguments and keyword arguments |
f in a callable which suppresses the indicated
warnings before invoking f and unsuppresses them afterwards.
If f returns a Deferred, warnings will remain suppressed until the Deferred
fires.