HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/wheel/__pycache__/pkginfo.cpython-310.pyc
o

c�a��@s�dZddlmZzedZWneydZYnwes0ddlmZdd�Zdd	�Z	d
d�Z
dSddlmZd
d�Zdd	�Z	dd�Z
dS)zTTools for reading and writing PKG-INFO / METADATA without caring
about the encoding.�)�ParserFT)�	GeneratorcCst��|�S)N)r�parsestr)�bytestr�r�//usr/lib/python3/dist-packages/wheel/pkginfo.py�read_pkg_info_bytessrcCs<t|d��}t��|�}Wd�|S1swY|S)N�r��openr�parse��path�headers�messagerrr�
read_pkg_infos
��rcC�Dt|d��}t|ddd��|�Wd�dS1swYdS)N�wFr��mangle_from_�maxheaderlen)rr�flatten)rr�metadatarrr�write_pkg_info�"�r)�BytesGeneratorcCs|jddd�}t��|�}|S)N�ascii�surrogateescape��encoding�errors)�decoderr)rrrrrrrscCsBt|dddd��}t��|�}Wd�|S1swY|S)Nr	rrrr
r
rrrr"s�
��cCr)N�wbFrr)rrr)rr�outrrrr)rN)�__doc__�email.parserr�unicode�_PY3�	NameError�email.generatorrrrrrrrrr�<module>s"�