Skip to content

Commit 50e9f81

Browse files
committed
Remove Python 2 compatibility in _compat.NullFinder.
1 parent d96e7e7 commit 50e9f81

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

importlib_metadata/_compat.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ class NullFinder:
5656
def find_spec(*args, **kwargs):
5757
return None
5858

59-
# In Python 2, the import system requires finders
60-
# to have a find_module() method, but this usage
61-
# is deprecated in Python 3 in favor of find_spec().
62-
# For the purposes of this finder (i.e. being present
63-
# on sys.meta_path but having no other import
64-
# system functionality), the two methods are identical.
65-
find_module = find_spec
66-
6759

6860
def pypy_partial(val):
6961
"""

0 commit comments

Comments
 (0)