aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--Lib/sched.py5
1 files changed, 4 insertions, 1 deletions
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"]