summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2019-02-26 23:09:38 -0500
committerRusty Wagner <rusty@vector35.com>2019-02-26 23:09:38 -0500
commit49f6de04c7106e6ab8ce31fac6299f372a665698 (patch)
tree1a0711864b3c113c273d4453f14773445037295e /python/function.py
parent2f84b5c600f08101a6a7ee08738a3e3a32686f46 (diff)
Fix some flow graph and disassembly API issues
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py
index 7471d639..065211c9 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1905,11 +1905,12 @@ class DisassemblyTextRenderer(object):
def basic_block(self, block):
if block is not None:
core.BNSetDisassemblyTextRendererBasicBlock(self.handle, block.handle)
- core.BNSetDisassemblyTextRendererBasicBlock(self.handle, None)
+ else:
+ core.BNSetDisassemblyTextRendererBasicBlock(self.handle, None)
@property
def arch(self):
- return binaryninja.architecture.Architecture(handle = core.BNSetDisassemblyTextRendererArchitecture(self.handle))
+ return binaryninja.architecture.CoreArchitecture(handle = core.BNGetDisassemblyTextRendererArchitecture(self.handle))
@arch.setter
def arch(self, arch):