summaryrefslogtreecommitdiffstats
path: root/Lib/sched.py
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2011-12-19 18:12:01 (GMT)
committerGiampaolo Rodola' <g.rodola@gmail.com>2011-12-19 18:12:01 (GMT)
commit2fa22818bdaf8ab0aec99f7790a938acf22c18b2 (patch)
treea448870e05bc75fe940c408fc30659df39fdf423 /Lib/sched.py
parent2b1cc895729710e3e1751f4b1867299821e04c03 (diff)
downloadcpython-2fa22818bdaf8ab0aec99f7790a938acf22c18b2.zip
cpython-2fa22818bdaf8ab0aec99f7790a938acf22c18b2.tar.gz
cpython-2fa22818bdaf8ab0aec99f7790a938acf22c18b2.tar.bz2
(bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684
Diffstat (limited to 'Lib/sched.py')
-rw-r--r--Lib/sched.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/sched.py b/Lib/sched.py
index 5292fcf..bd1f427 100644
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -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"]