diff options
author | Brett Cannon <brett@python.org> | 2013-06-13 20:57:26 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-13 20:57:26 -0400 |
commit | 0a140668faf18bf7f8d2ea15e57da5e2a0625292 (patch) | |
tree | 97522129bc600a6eff09899ae7a177b5f3e980b3 /Lib/datetime.py | |
parent | Issue #18048: Merge test_pep263.py and test_coding.py into test_source_encodi... (diff) | |
download | cpython-0a140668faf18bf7f8d2ea15e57da5e2a0625292.tar.gz cpython-0a140668faf18bf7f8d2ea15e57da5e2a0625292.tar.bz2 cpython-0a140668faf18bf7f8d2ea15e57da5e2a0625292.zip |
Issue #18200: Update the stdlib (except tests) to use
ModuleNotFoundError.
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index bc1486c9195..2883418cc13 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -2116,7 +2116,7 @@ _EPOCH = datetime(1970, 1, 1, tzinfo=timezone.utc) try: from _datetime import * -except ImportError: +except ModuleNotFoundError: pass else: # Clean up unused names |