HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/wheel/__pycache__/pkginfo.cpython-38.pyc
U

�-^��@s�dZddlmZzedZWnek
r4dZYnXes`ddlmZdd�Zdd	�Z	d
d�Z
n$dd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_bytessrc	Cs&t|d��}t��|�}W5QRX|S)N�r��openr�parse��path�headers�messagerrr�
read_pkg_infosrc	Cs.t|d��}t|ddd��|�W5QRXdS)N�wFr�Zmangle_from_Zmaxheaderlen)rr�flatten)rrZmetadatarrr�write_pkg_infosr)�BytesGeneratorcCs|jddd�}t��|�}|S)N�ascii�surrogateescape��encoding�errors)�decoderr)rrrrrrrsc	Cs,t|dddd��}t��|�}W5QRX|S)Nr	rrrr
r
rrrr"s�c	Cs.t|d��}t|ddd��|�W5QRXdS)N�wbFrr)rrr)rr�outrrrr)sN)�__doc__Zemail.parserrZunicodeZ_PY3�	NameErrorZemail.generatorrrrrrrrrr�<module>s