From 0cba894f4fbc4c6b7a4d9dedf4529a555de9e8ce Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Thu, 3 Mar 2022 14:45:34 -0500 Subject: il block contains methods fixed, resolves #3000 --- python/highlevelil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/highlevelil.py') diff --git a/python/highlevelil.py b/python/highlevelil.py index cb0a0980..176b2994 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -2556,7 +2556,7 @@ class HighLevelILBasicBlock(basicblock.BasicBlock): return hash((self.start, self.end, self.il_function)) def __contains__(self, instruction): - if type(instruction) != HighLevelILInstruction or instruction.il_basic_block != self: + if not isinstance(instruction, HighLevelILInstruction) or instruction.il_basic_block != self: return False if self.start <= instruction.instr_index <= self.end: return True -- cgit v1.3.1