From: Jeremy Stanley Date: Sun, 1 Nov 2020 16:46:44 +0000 (+0000) Subject: Always use ModuleNotFoundError X-Git-Tag: 0.4.0~19 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=6f30c3687aa92729c549132b47825f1f9fedd6bd;p=mudpy.git Always use ModuleNotFoundError Now that we no longer support Python 3.5, we can assume ModuleNotFoundError is always available and drop our backward-compatible workaround for it in version.py. --- diff --git a/mudpy/version.py b/mudpy/version.py index afe66eb..d99617e 100644 --- a/mudpy/version.py +++ b/mudpy/version.py @@ -8,9 +8,6 @@ import json import sys -# TODO(fungi) Clean up once Python 3.6 is the oldest interpreter supported -if not hasattr(__builtins__, 'ModuleNotFoundError'): - ModuleNotFoundError = ImportError # TODO(fungi) Clean up once Python 3.8 is the oldest interpreter supported try: import importlib.metadata