From 7bf2dac09a136d816004e3897061bd84e1f5e8ac Mon Sep 17 00:00:00 2001 From: TexZK Date: Sun, 23 Feb 2020 15:44:28 +0100 Subject: [PATCH] Fixed flood with empty span --- src/hexrec/blocks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hexrec/blocks.py b/src/hexrec/blocks.py index 28662a4..9672085 100644 --- a/src/hexrec/blocks.py +++ b/src/hexrec/blocks.py @@ -2025,8 +2025,10 @@ def __getitem__( step = self.autofill if isinstance(step, self.items_type): - blocks = read(blocks, start, endex, step, self.items_join) - blocks = flood(blocks, pattern=step, join=self.items_join) + blocks = read(blocks, start, endex, step, + join=self.items_join) + blocks = flood(blocks, start, endex, step, + join=self.items_join) items = self.items_join(items for _, items in blocks) return items