From 2fa22818bdaf8ab0aec99f7790a938acf22c18b2 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola' Date: Mon, 19 Dec 2011 19:12:01 +0100 Subject: [PATCH] (bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684 --- Lib/sched.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/sched.py b/Lib/sched.py index 5292fcfdb85..bd1f42734a7 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"]