From 0a140668faf18bf7f8d2ea15e57da5e2a0625292 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Thu, 13 Jun 2013 20:57:26 -0400 Subject: Issue #18200: Update the stdlib (except tests) to use ModuleNotFoundError. --- Lib/sched.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/sched.py') diff --git a/Lib/sched.py b/Lib/sched.py index 9a82a89688..14f6fff4e3 100644 --- a/Lib/sched.py +++ b/Lib/sched.py @@ -33,11 +33,11 @@ import heapq from collections import namedtuple try: import threading -except ImportError: +except ModuleNotFoundError: import dummy_threading as threading try: from time import monotonic as _time -except ImportError: +except ModuleNotFoundError: from time import time as _time __all__ = ["scheduler"] -- cgit v1.2.1