Issue #18200: Update the stdlib (except tests) to use

ModuleNotFoundError.
This commit is contained in:
Brett Cannon 2013-06-13 20:57:26 -04:00
parent 9702a17a6a
commit 0a140668fa
83 changed files with 144 additions and 158 deletions

View file

@ -6,14 +6,14 @@ import _thread
from time import sleep as _sleep
try:
from time import monotonic as _time
except ImportError:
except ModuleNotFoundError:
from time import time as _time
from traceback import format_exc as _format_exc
from _weakrefset import WeakSet
from itertools import islice as _islice
try:
from _collections import deque as _deque
except ImportError:
except ModuleNotFoundError:
from collections import deque as _deque
# Note regarding PEP 8 compliant names
@ -922,7 +922,7 @@ _shutdown = _MainThread()._exitfunc
try:
from _thread import _local as local
except ImportError:
except ModuleNotFoundError:
from _threading_local import local