提交 4560013b 编写于 作者: D Daniel P. Berrangé

scripts: fix list indexing when printing mis-ordered symbols

The python array slice syntax expects the first and last indexes,
not the first length and element count.
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 d57d8d6e
......@@ -59,8 +59,8 @@ def check_sorting(group, symfile, line, groupfile, lastgroup):
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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册