From b006fcc30ce0277e5fa45fbab059cc7d3154bbcc Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 29 Mar 2009 18:51:11 +0000 Subject: [PATCH] Make life easier for non-CPython implementations. --- Lib/heapq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/heapq.py b/Lib/heapq.py index 46dd4b6efc..a44d1beb04 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -308,7 +308,7 @@ def _siftup(heap, pos): # If available, use C implementation try: - from _heapq import heappush, heappop, heapify, heapreplace, nlargest, nsmallest, heappushpop + from _heapq import * except ImportError: pass -- 2.50.1