From 50e9f816c1cea50ab19ee58edf077c687af47fe5 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 8 Jun 2023 15:46:08 -0400 Subject: [PATCH] Remove Python 2 compatibility in _compat.NullFinder. --- importlib_metadata/_compat.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/importlib_metadata/_compat.py b/importlib_metadata/_compat.py index 638e7791..b7abd09b 100644 --- a/importlib_metadata/_compat.py +++ b/importlib_metadata/_compat.py @@ -56,14 +56,6 @@ class NullFinder: def find_spec(*args, **kwargs): return None - # In Python 2, the import system requires finders - # to have a find_module() method, but this usage - # is deprecated in Python 3 in favor of find_spec(). - # For the purposes of this finder (i.e. being present - # on sys.meta_path but having no other import - # system functionality), the two methods are identical. - find_module = find_spec - def pypy_partial(val): """