about summary refs log tree commit diff stats
path: root/example/disasm/callback.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-01-25 11:05:29 +0100
committerAjax <commial@gmail.com>2016-01-26 17:09:18 +0100
commit455cfbe8b7aed7cb5be8e1b9aa1917a9f7d51821 (patch)
tree58c354de7afe7b4b0ca6af923616941ba9c2e79e /example/disasm/callback.py
parent01b1f292c84d4cbda38b6c308fc7b1af52595cec (diff)
downloadmiasm-455cfbe8b7aed7cb5be8e1b9aa1917a9f7d51821.tar.gz
miasm-455cfbe8b7aed7cb5be8e1b9aa1917a9f7d51821.zip
BasicBlocks: update examples with the new API
Diffstat (limited to 'example/disasm/callback.py')
-rw-r--r--example/disasm/callback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/disasm/callback.py b/example/disasm/callback.py
index 6c77023e..4a7507dd 100644
--- a/example/disasm/callback.py
+++ b/example/disasm/callback.py
@@ -63,5 +63,5 @@ blocks_after = mdis.dis_multibloc(0)
 print "\n".join(str(block) for block in blocks_after)
 
 # Ensure the callback has been called
-assert blocks[0].lines[0].name == "CALL"
-assert blocks_after[0].lines[0].name == "PUSH"
+assert blocks.heads()[0].lines[0].name == "CALL"
+assert blocks_after.heads()[0].lines[0].name == "PUSH"