=
# pragma: no cover
# type: ignore
"""
Class decorator for installation on sys.meta_path.
Adds the backport DistributionFinder to sys.meta_path and
attempts to disable the finder functionality of the stdlib
DistributionFinder.
"""
return
"""
Give the backport primacy for discovering path-based distributions
by monkey-patching the stdlib O_O.
See #91 for more background for rationale on this sketchy
behavior.
"""
return == and
# pragma: nocover
del
"""
A "Finder" (aka "MetaClassFinder") that never finds any modules,
but may find distributions.
"""
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.
=
"""
Adjust for variable stacklevel on partial under PyPy.
Workaround for #327.
"""
= ==
return +