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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b006fcc30ce0277e5fa45fbab059cc7d3154bbcc;p=thirdparty%2FPython%2Fcpython.git Make life easier for non-CPython implementations. --- diff --git a/Lib/heapq.py b/Lib/heapq.py index 46dd4b6efc67..a44d1beb047c 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