HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/thread-self/root/lib/python3.10/importlib/metadata/__pycache__/_adapters.cpython-310.pyc
o

p̦iF�@s<ddlZddlZddlZddlmZGdd�dejj�ZdS)�N�)�
FoldedCasecsbeZdZeeegd���Z	dejj	f�fdd�Z
dd�Z�fdd�Zd	d
�Z
edd��Z�ZS)
�Message)
�
ClassifierzObsoletes-Dist�PlatformzProject-URLz
Provides-DistzProvides-Extraz
Requires-DistzRequires-ExternalzSupported-Platform�Dynamic�origcs"t��|�}t|��t|��|S�N)�super�__new__�vars�update)�clsr�res��	__class__��3/usr/lib/python3.10/importlib/metadata/_adapters.pyrszMessage.__new__cOs|��|_dSr	)�_repair_headers�_headers)�self�args�kwargsrrr�__init__#szMessage.__init__cs
t���Sr	)r
�__iter__�rrrrr's
zMessage.__iter__cs>dd���fdd�t|�dD�}|jr|�d|��f�|S)NcSs|rd|vr|St�d|�S)zCorrect for RFC822 indentation�
z        )�textwrap�dedent)�valuerrr�redent+sz'Message._repair_headers.<locals>.redentcsg|]
\}}|�|�f�qSrr)�.0�keyr�r rr�
<listcomp>1sz+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|�jvr
��|�n�|}|dkrt�d|�}|���dd�}||fS)N�Keywordsz\s+�-�_)�multiple_use_keys�get_all�re�split�lower�replace)r"r�tkrrr�	transform=s
zMessage.json.<locals>.transform)�dict�mapr)rr4rrr�json6szMessage.json)�__name__�
__module__�__qualname__�setr6rr-�email�messagerrrrr�propertyr7�
__classcell__rrrrrs��r)r/r�
email.messager<�_textrr=rrrrr�<module>s