From 621aebfdaec34d0e29c83728439e1a6254213b9f Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Thu, 2 Apr 2015 23:22:43 -0700 Subject: [PATCH] copy the list for the ParsedTB frames --- boltons/tbutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boltons/tbutils.py b/boltons/tbutils.py index 97a42d8..798c6dc 100644 --- a/boltons/tbutils.py +++ b/boltons/tbutils.py @@ -644,10 +644,10 @@ class ParsedTB(object): return None def to_dict(self): - "Get a copy as a JSON-serializable :class:`dict`" + "Get a copy as a JSON-serializable :class:`dict`." return {'exc_type': self.exc_type, 'exc_msg': self.exc_msg, - 'frames': self.frames} # TODO: copy? + 'frames': list(self.frames)} def __repr__(self): cn = self.__class__.__name__