diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2011-12-19 18:12:01 (GMT) |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2011-12-19 18:12:01 (GMT) |
commit | 2fa22818bdaf8ab0aec99f7790a938acf22c18b2 (patch) | |
tree | a448870e05bc75fe940c408fc30659df39fdf423 /Lib/sched.py | |
parent | 2b1cc895729710e3e1751f4b1867299821e04c03 (diff) | |
download | cpython-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.py | 5 |
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"] |