Skip to content

Commit b44174d

Browse files
committed
Fix another comprehension
1 parent 6f9ba88 commit b44174d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tblib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ def to_dict(self):
106106
else:
107107
tb_next = self.tb_next.to_dict()
108108

109-
code = {
110-
k: v
109+
code = dict([
110+
(k, v)
111111
for k, v in self.tb_frame.f_code.__dict__.items()
112112
if k.startswith('co_')
113-
}
113+
])
114114
frame = {
115115
'f_globals': self.tb_frame.f_globals,
116116
'f_code': code

0 commit comments

Comments
 (0)