copy the list for the ParsedTB frames

This commit is contained in:
Mahmoud Hashemi 2015-04-02 23:22:43 -07:00
parent e16a2b4bc5
commit 621aebfdae
1 changed files with 2 additions and 2 deletions

View File

@ -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__