From: Raymond Hettinger Date: Sun, 29 Mar 2009 18:51:11 +0000 (+0000) Subject: Make life easier for non-CPython implementations. X-Git-Tag: v2.7a1~1759 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b006fcc30ce0277e5fa45fbab059cc7d3154bbcc;p=python Make life easier for non-CPython implementations. --- 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