commit | d9ea39db84a78b3b994943bc7490615dfe6b009d | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Fri Aug 02 19:16:44 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Fri Aug 02 19:16:44 2002 +0000 |
tree | 0d9e6c97bdde8debfd1dab876df423b594e0335c | |
parent | b48128650455cd163908cd756a651ad37d550eee [diff] [blame] |
Don't use true division where int division was intended. For that matter, don't use division at all.
diff --git a/Lib/heapq.py b/Lib/heapq.py index cdba693..6264700 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py
@@ -126,7 +126,7 @@ pos = len(heap) heap.append(None) while pos: - parentpos = (pos - 1) / 2 + parentpos = (pos - 1) >> 1 parent = heap[parentpos] if item >= parent: break