]> granicus.if.org Git - python/commitdiff
(bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684
authorGiampaolo Rodola' <g.rodola@gmail.com>
Mon, 19 Dec 2011 18:12:01 +0000 (19:12 +0100)
committerGiampaolo Rodola' <g.rodola@gmail.com>
Mon, 19 Dec 2011 18:12:01 +0000 (19:12 +0100)
Lib/sched.py

index 5292fcfdb85fda0c943d59fa6f1c04a674c2d47c..bd1f42734a703f6fb5984e627626af9d935c2225 100644 (file)
@@ -30,8 +30,11 @@ has another way to reference private data (besides global variables).
 
 import time
 import heapq
-import threading
 from collections import namedtuple
+try:
+    import threading
+except ImportError:
+    import dummy_threading as threading
 
 __all__ = ["scheduler"]