From: Giampaolo Rodola' Date: Mon, 19 Dec 2011 18:12:01 +0000 (+0100) Subject: (bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684 X-Git-Tag: v3.3.0a1~555 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fa22818bdaf8ab0aec99f7790a938acf22c18b2;p=thirdparty%2FPython%2Fcpython.git (bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684 --- diff --git a/Lib/sched.py b/Lib/sched.py index 5292fcfdb85f..bd1f42734a70 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"]