We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9ba88 commit b44174dCopy full SHA for b44174d
1 file changed
src/tblib/__init__.py
@@ -106,11 +106,11 @@ def to_dict(self):
106
else:
107
tb_next = self.tb_next.to_dict()
108
109
- code = {
110
- k: v
+ code = dict([
+ (k, v)
111
for k, v in self.tb_frame.f_code.__dict__.items()
112
if k.startswith('co_')
113
- }
+ ])
114
frame = {
115
'f_globals': self.tb_frame.f_globals,
116
'f_code': code
0 commit comments