The python array slice syntax expects the first and last indexes,
not the first length and element count.
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
issorted = False
if not issorted:
- actual = group[first:(last - first + 1)]
- expect = sortedgroup[first:(last - first + 1)]
+ actual = group[first:last]
+ expect = sortedgroup[first:last]
print("Symbol block at %s:%s: symbols not sorted" %
(symfile, line), file=sys.stderr)
for g in actual: