From: Raymond Hettinger Date: Sun, 29 Mar 2009 19:30:50 +0000 (+0000) Subject: Make life easier for non-CPython implementations X-Git-Tag: v3.1a2~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dd737b5ab1624c061a10d569138963b57f32f96;p=python Make life easier for non-CPython implementations --- diff --git a/Lib/heapq.py b/Lib/heapq.py index 19a457b10d..b74818e2ba 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