mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 08:43:01 +02:00
Compare tool: Fix unbound local error caused by empty group
This commit is contained in:
parent
bdc51eb28c
commit
34c74a6e6e
1 changed files with 1 additions and 0 deletions
|
|
@ -682,6 +682,7 @@ def insert_boundary():
|
|||
self.left.line_number_map[self.changes[-1].ltop] = '-'
|
||||
self.right.line_number_map[self.changes[-1].rtop] = '-'
|
||||
|
||||
ahi = bhi = 0
|
||||
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
|
||||
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
|
||||
if j == 0 and (i > 0 or min(alo, blo) > 0):
|
||||
|
|
|
|||
Loading…
Reference in a new issue