Skip to content

Commit

Permalink
Fixed a bug in catalog result merging code that was never reached bef…
Browse files Browse the repository at this point in the history
…ore:

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.
  • Loading branch information
hathawsh committed Jul 30, 2002
1 parent 5ace2d0 commit 9f7ea9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Catalog.py
Expand Up @@ -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:
Expand Down

0 comments on commit 9f7ea9d

Please sign in to comment.