Skip to content

Commit

Permalink
Remove Python 2 compatibility in _compat.NullFinder.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 8, 2023
1 parent d96e7e7 commit 50e9f81
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions importlib_metadata/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 50e9f81

Please sign in to comment.