class SafeString(object): (source)
Known subclasses: docutils.utils.error_reporting.ErrorString
str
and unicode
.Method | __init__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | __unicode__ |
Return unicode representation of self.data . |
Instance Variable | data |
Undocumented |
Instance Variable | decoding_errors |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | encoding_errors |
Undocumented |
Undocumented
docutils.utils.error_reporting.ErrorString
Return unicode representation of self.data
.
Try unicode(self.data), catch UnicodeError
and
self.data
is an Exception instance, work around
http://bugs.python.org/issue2517 with an emulation of
Exception.__unicode__,self.encoding
and self.decoding_errors
.