summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2022-03-03 14:45:34 -0500
committerJordan Wiens <jordan@psifertex.com>2022-03-03 14:45:34 -0500
commit0cba894f4fbc4c6b7a4d9dedf4529a555de9e8ce (patch)
tree36d621873be913d5e971c8528e22e442d664b8ad /python/lowlevelil.py
parent56d1994a042c8a3f1b5a90d0b15e4fcca75ebb54 (diff)
il block contains methods fixed, resolves #3000
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 8c246b73..22ea1e64 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -4716,7 +4716,7 @@ class LowLevelILBasicBlock(basicblock.BasicBlock):
return hash((self.start, self.end, self._il_function))
def __contains__(self, instruction):
- if type(instruction) != LowLevelILInstruction or instruction.il_basic_block != self:
+ if not isinstance(instruction, LowLevelILInstruction) or instruction.il_basic_block != self:
return False
return True