![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|

Public Member Functions | |
| __init__ (self, data, encoding=None, encoding_errors='backslashreplace', decoding_errors='replace') | |
| __str__ (self) | |
| __unicode__ (self) | |
Public Attributes | |
| data | |
| encoding | |
| encoding_errors | |
| decoding_errors | |
A wrapper providing robust conversion to `str` and `unicode`.
| docutils.utils.error_reporting.SafeString.__unicode__ | ( | self | ) |
Return unicode representation of `self.data`. Try ``unicode(self.data)``, catch `UnicodeError` and * if `self.data` is an Exception instance, work around http://bugs.python.org/issue2517 with an emulation of Exception.__unicode__, * else decode with `self.encoding` and `self.decoding_errors`.
Reimplemented in docutils.utils.error_reporting.ErrorString.