]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Simplify heapreplace() -- there's no need for an explicit test for
authorGuido van Rossum <guido@python.org>
Wed, 7 Aug 2002 18:58:11 +0000 (18:58 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 7 Aug 2002 18:58:11 +0000 (18:58 +0000)
commit3c8dd0c6e783b2a07017d0fdf7f60232603ed407
treedf4f18d7efd6a70c24be1166155278398a31bd8a
parentb2865919cc150d3cf682d06ccc99d8de285b1de3
Simplify heapreplace() -- there's no need for an explicit test for
empty heap, since heap[0] raises the appropriate IndexError already.
Lib/heapq.py