From 52bfc7cd05565ddcae7649773b13070587648336 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Tue, 7 Jun 2016 19:12:10 -0700 Subject: [PATCH] a little docstring for ParsedException.to_string, pretty much resolving #80 --- boltons/tbutils.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: