commit | 3c8dd0c6e783b2a07017d0fdf7f60232603ed407 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Aug 07 18:58:11 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Aug 07 18:58:11 2002 +0000 |
tree | df4f18d7efd6a70c24be1166155278398a31bd8a | |
parent | b2865919cc150d3cf682d06ccc99d8de285b1de3 [diff] |
Simplify heapreplace() -- there's no need for an explicit test for empty heap, since heap[0] raises the appropriate IndexError already.