From 6f30c3687aa92729c549132b47825f1f9fedd6bd Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sun, 1 Nov 2020 16:46:44 +0000 Subject: [PATCH] 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. --- mudpy/version.py | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.11.0