Skip to content

Commit f9eb63b

Browse files
committed
deparse sorting has to use strings
1 parent 1111792 commit f9eb63b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

trepan/processor/command/deparse.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ def run(self, args):
139139
elif show_offsets:
140140
deparsed = code_deparse(co)
141141
self.section("Offsets known:")
142-
m = self.columnize_commands(
143-
list(sorted(deparsed.offsets.keys(), key=lambda x: str(x[0])))
144-
)
142+
keys = sorted([str(k[1]) for k in deparsed.offsets.keys()])
143+
m = self.columnize_commands(keys)
145144
self.msg_nocr(m)
146145
return
147146
elif offset is not None:

0 commit comments

Comments
 (0)