gf ddlZddlZddlZddlZddlZddlmZejejde dZ GddejjZ y) N) FoldedCasezFImplicit None on return values is deprecated and will raise KeyErrors.) stacklevelceZdZeeegdZ dejjffd Z dZ fdZ fdZ dZedZxZS) Message) ClassifierzObsoletes-DistPlatformz Project-URLz Provides-DistzProvides-Extraz Requires-DistzRequires-ExternalzSupported-PlatformDynamicorigclt||}t|jt||SN)super__new__varsupdate)clsr res __class__s C/opt/alt/python312/lib64/python3.12/importlib/metadata/_adapters.pyrzMessage.__new__)s,goc" S d$ c.|j|_yr)_repair_headers_headers)selfargskwargss r__init__zMessage.__init__.s,,. rc t|Sr)r__iter__)rrs rr zMessage.__iter__2sw!!rc>t||}| t|S)z Warn users that a ``KeyError`` can be expected when a mising key is supplied. Ref python/importlib_metadata#371. )r __getitem___warn)ritemrrs rr"zMessage.__getitem__5s# g!$' ; G rcd}t|dDcgc]\}}|||f}}}|jr!|jd|jf|Scc}}w)NcB|rd|vr|Stjd|zS)zCorrect for RFC822 indentation z )textwrapdedent)values rredentz'Message._repair_headers..redent@s$D- ??7U?3 3rr Description)r_payloadappend get_payload)rr+keyr*headerss rrzMessage._repair_headers?sa 4 ;?t*Z:PQ:PJCC':PQ == NNM4+;+;+=> ?RsAc Tfd}tt|ttS)z[ Convert PackageMetadata to a JSON-compatible format per PEP 0566. c|jvrj|n|}|dk(rtjd|}|j j dd}||fS)NKeywordsz\s+-_)multiple_use_keysget_allresplitlowerreplace)r0r*tkrs r transformzMessage.json..transformRs_),0F0F)FDLL%DQTIEj /$$S#.Bu9 r)dictmapr)rr>s` rjsonz Message.jsonKs# C 3z4#89::r)__name__ __module__ __qualname__setr@rr7emailmessagerrrr r"rpropertyrA __classcell__)rs@rrrsa   "5==00 /"  ; ;rr) functoolswarningsr9r( email.messagerF_textrpartialwarnDeprecationWarningr#rGrrrrRsS    MML  F;emm##F;r