![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| __init__ (self, stream=None, encoding=None, encoding_errors='backslashreplace', decoding_errors='replace') | |
| write (self, data) | |
| close (self) | |
Public Attributes | |
| stream | |
| encoding | |
| encoding_errors | |
| decoding_errors | |
Wrapper class for file-like error streams with failsafe de- and encoding of `str`, `bytes`, `unicode` and `Exception` instances.
| docutils.utils.error_reporting.ErrorOutput.__init__ | ( | self, | |
stream = None, |
|||
encoding = None, |
|||
encoding_errors = 'backslashreplace', |
|||
decoding_errors = 'replace' |
|||
| ) |
:Parameters:
- `stream`: a file-like object,
a string (path to a file),
`None` (write to `sys.stderr`, default), or
evaluating to `False` (write() requests are ignored).
- `encoding`: `stream` text encoding. Guessed if None.
- `encoding_errors`: how to treat encoding errors.
| docutils.utils.error_reporting.ErrorOutput.close | ( | self | ) |
Close the error-output stream. Ignored if the stream is` sys.stderr` or `sys.stdout` or has no close() method.
| docutils.utils.error_reporting.ErrorOutput.write | ( | self, | |
| data | |||
| ) |
Write `data` to self.stream. Ignore, if self.stream is False. `data` can be a `string`, `unicode`, or `Exception` instance.