Commit 03a69388 authored by Shane Hathaway's avatar Shane Hathaway

Fixed a bug in catalog result merging code that was never reached before:

the length of the concatenated sequence is not the same as the length of r,
since r contains sequences of different sizes.  Let LazyCat compute the
length.
parent 585ca92f
......@@ -704,7 +704,10 @@ def mergeResults(r, has_sort_keys, reverse):
return r[0][1]
else:
if not has_sort_keys:
return LazyCat(r, len(r))
# Note that the length of the final sequence is not
# the same as the length of r, since r may contain
# sequences of different sizes.
return LazyCat(r)
else:
r.sort()
if reverse:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment