summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/examples/linear_mlil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/examples/linear_mlil.py b/python/examples/linear_mlil.py
index e4df1765..6f2426f2 100644
--- a/python/examples/linear_mlil.py
+++ b/python/examples/linear_mlil.py
@@ -46,7 +46,7 @@ class LinearMLILView(TokenizedTextView):
# Sort basic blocks by IL instruction index
blocks = il.basic_blocks
- blocks.sort(key=lambda block: block.start)
+ list(blocks).sort(key=lambda block: block.start)
# Function header
result = []
@@ -82,12 +82,12 @@ class LinearMLILView(TokenizedTextView):
)
)
for i in block:
- lines, length = renderer.get_disassembly_text(i.instr_index)
+ lines = renderer.get_disassembly_text(i.instr_index)
lastAddr = i.address
lineIndex = 0
for line in lines:
result.append(
- LinearDisassemblyLine(LinearDisassemblyLineType.CodeDisassemblyLineType, self.function, block, line)
+ LinearDisassemblyLine(LinearDisassemblyLineType.CodeDisassemblyLineType, self.function, block, line[0])
)
lineIndex += 1
lastBlock = block