Browse Source

Added support for libp3heapq vs libheapq

Josh Yelon 19 years ago
parent
commit
a68c6cc412
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/task/Task.py

+ 4 - 1
direct/src/task/Task.py

@@ -18,7 +18,10 @@ import time
 import fnmatch
 import fnmatch
 import string
 import string
 import signal
 import signal
-from libheapq import heappush, heappop, heapify
+try:
+  from libp3heapq import heappush, heappop, heapify
+except:
+  from libheapq import heappush, heappop, heapify
 import types
 import types
 
 
 if __debug__:
 if __debug__: