[Python-checkins] cpython: (bug #8684) fix 'fedora without thread buildbot' as per

giampaolo.rodola python-checkins at python.org
Mon Dec 19 19:12:07 CET 2011


http://hg.python.org/cpython/rev/50267d2bb320
changeset:   74086:50267d2bb320
user:        Giampaolo Rodola' <g.rodola at gmail.com>
date:        Mon Dec 19 19:12:01 2011 +0100
summary:
  (bug #8684) fix 'fedora without thread buildbot' as per http://bugs.python.org/issue8684

files:
  Lib/sched.py |  5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/sched.py b/Lib/sched.py
--- a/Lib/sched.py
+++ b/Lib/sched.py
@@ -30,8 +30,11 @@
 
 import time
 import heapq
-import threading
 from collections import namedtuple
+try:
+    import threading
+except ImportError:
+    import dummy_threading as threading
 
 __all__ = ["scheduler"]
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list