From 0dd737b5ab1624c061a10d569138963b57f32f96 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 29 Mar 2009 19:30:50 +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 19a457b10dd..b74818e2ba7 100644 --- a/Lib/heapq.py +++ b/Lib/heapq.py @@ -307,7 +307,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