diff --git a/boltons/tbutils.py b/boltons/tbutils.py index d7c5589..17bcfc2 100644 --- a/boltons/tbutils.py +++ b/boltons/tbutils.py @@ -683,6 +683,12 @@ class ParsedException(object): % (cn, self.exc_type, self.exc_msg, self.frames)) def to_string(self): + """Formats the exception and its traceback into the standard format, + as returned by the traceback module. + + ``ParsedException.from_string(text).to_string()`` should yield + ``text``. + """ lines = [u'Traceback (most recent call last):'] for frame in self.frames: