summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 046d73a6..d3312474 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -976,6 +976,8 @@ class HighLevelILBasicBlock(basicblock.BasicBlock):
def __getitem__(self, idx):
size = self.end - self.start
+ if isinstance(idx, slice):
+ return [self[index] for index in range(*idx.incides(size))]
if idx > size or idx < -size:
raise IndexError("list index is out of range")
if idx >= 0: