U  üe"ã@sBddlZddlZddgZdd„Zdd„ZGdd„dƒZdd „ZdS) éNÚinstallÚ NullFindercCstj |ƒ¡tƒ|S)zÒ 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. )ÚsysÚ meta_pathÚappendÚdisable_stdlib_finder)Úcls©r úH/opt/hc_python/lib/python3.8/site-packages/importlib_metadata/_compat.pyrscCs"dd„}t|tjƒD]}|`qdS)zÀ 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. cSst|ddƒdkot|dƒS)NÚ __module__Ú_frozen_importlib_externalÚfind_distributions)ÚgetattrÚhasattr)Úfinderr r r Úmatchessÿþþz&disable_stdlib_finder..matchesN)Úfilterrrr )rrr r r rs rc@seZdZdZedd„ƒZdS)rzi A "Finder" (aka "MetaPathFinder") that never finds any modules, but may find distributions. cOsdS)Nr )ÚargsÚkwargsr r r Ú find_spec-szNullFinder.find_specN)Ú__name__r Ú __qualname__Ú__doc__Ú staticmethodrr r r r r'scCst ¡dk}||S)zY Adjust for variable stacklevel on partial under PyPy. Workaround for #327. ÚPyPy)ÚplatformÚpython_implementation)ÚvalÚis_pypyr r r Ú pypy_partial2s r)rrÚ__all__rrrrr r r r Ús