1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
U
ß=®d–    ã@spddlZddlZddlZddlZddlZddlmZddlm    Z    ej
ej de e    dƒdZ Gdd    „d    ejjƒZdS)
éNé)Ú
FoldedCase)Ú pypy_partialzFImplicit None on return values is deprecated and will raise KeyErrors.é)Ú
stacklevelc s|eZdZeeeddddddddd    d
g
ƒƒZejj    d œ‡fd d „ Z
dd„Z ‡fdd„Z ‡fdd„Z dd„Zedd„ƒZ‡ZS)ÚMessageÚ
ClassifierzObsoletes-DistÚPlatformz Project-URLz Provides-DistzProvides-Extraz Requires-DistzRequires-ExternalzSupported-PlatformZDynamic)Úorigcs"tƒ |¡}t|ƒ t|ƒ¡|S©N)ÚsuperÚ__new__ÚvarsÚupdate)Úclsr
Úres©Ú    __class__©úSd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\importlib_metadata/_adapters.pyr *s zMessage.__new__cOs| ¡|_dSr )Ú_repair_headersÚ_headers)ÚselfÚargsÚkwargsrrrÚ__init__/szMessage.__init__cs
tƒ ¡Sr )r Ú__iter__©rrrrr3szMessage.__iter__cstƒ |¡}|dkrtƒ|S)zŠ
        Warn users that a ``KeyError`` can be expected when a
        mising key is supplied. Ref python/importlib_metadata#371.
        N)r Ú __getitem__Ú_warn)rÚitemrrrrr6s zMessage.__getitem__cs>dd„‰‡fdd„t|ƒdDƒ}|jr:| d| ¡f¡|S)NcSs|r d|kr|St d|¡S)zCorrect for RFC822 indentationÚ
z        )ÚtextwrapÚdedent)ÚvaluerrrÚredentAs z'Message._repair_headers.<locals>.redentcsg|]\}}|ˆ|ƒf‘qSrr)Ú.0Úkeyr$©r%rrÚ
<listcomp>Gsz+Message._repair_headers.<locals>.<listcomp>rÚ Description)rÚ_payloadÚappendÚ get_payload)rÚheadersrr(rr@s
zMessage._repair_headerscs ‡fdd„}tt|ttˆƒƒƒS)z[
        Convert PackageMetadata to a JSON-compatible format
        per PEP 0566.
        csH|ˆjkrˆ |¡nˆ|}|dkr0t d|¡}| ¡ dd¡}||fS)NZKeywordsz\s+ú-Ú_)Úmultiple_use_keysÚget_allÚreÚsplitÚlowerÚreplace)r'r$ZtkrrrÚ    transformSs
 zMessage.json.<locals>.transform)ÚdictÚmapr)rr7rrrÚjsonLs z Message.json)Ú__name__Ú
__module__Ú __qualname__Úsetr9rr1ÚemailÚmessagerr rrrrÚpropertyr:Ú __classcell__rrrrrs.öþÿ 
 r)Ú    functoolsÚwarningsr3r"Ú email.messager?Z_textrÚ_compatrÚpartialÚwarnÚDeprecationWarningrr@rrrrrÚ<module>s  ü