zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
U
ß=®dã@s€ddlZddlZddlZddlmZddgZdd„Zdd„ZGdd„dƒZd    d
„Z    ej
d krpee ej e fZ n ee d fZ dS) éN)ÚUnionÚ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
úQd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\importlib_metadata/_compat.pyr scCs"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 Úmatches!sÿþþz&disable_stdlib_finder.<locals>.matchesN)Úfilterrrr)rrr
r
r rs    rc@seZdZdZedd„ƒZdS)rzj
    A "Finder" (aka "MetaClassFinder") that never finds any modules,
    but may find distributions.
    cOsdS)Nr
)ÚargsÚkwargsr
r
r Ú    find_spec0szNullFinder.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)ÚvalZis_pypyr
r
r Ú pypy_partial5s r)éé    zos.PathLike[str])ÚosrrÚtypingrÚ__all__rrrrÚ version_infoÚstrÚPathLikeZStrPathr
r
r
r Ú<module>s