summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
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):