HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/python38/lib/python3.8/site-packages/pip/_internal/utils/__pycache__/encoding.cpython-38.pyc
U

�{�e��@s�UddlZddlZddlZddlZddlmZmZejdfejdfej	dfej
dfejdfejdfej
d	fgZeeeefed
<e�d�Zeed�d
d�ZdS)�N)�List�Tuplezutf-8zutf-16z	utf-16-bez	utf-16-lezutf-32z	utf-32-bez	utf-32-le�BOMSscoding[:=]\s*([-\w.]+))�data�returncCs�tD],\}}|�|�r|t|�d��|�Sq|�d�dd�D]T}|dd�dkrDt�|�rDt�|�}|dk	sxt�|��d�d�}|�|�SqD|�t	�
d�p�t���S)	z�Check a bytes string for a BOM to correctly detect the encoding

    Fallback to locale.getpreferredencoding(False) like open() on Python3N�
�r��#�asciiF)
r�
startswith�len�decode�split�ENCODING_RE�search�AssertionError�groups�locale�getpreferredencoding�sys�getdefaultencoding)r�bom�encoding�line�result�r�@/tmp/pip-unpacked-wheel-_0scjqea/pip/_internal/utils/encoding.py�auto_decodes

�r)�codecsr�rer�typingrr�BOM_UTF8�	BOM_UTF16�BOM_UTF16_BE�BOM_UTF16_LE�	BOM_UTF32�BOM_UTF32_BE�BOM_UTF32_LEr�bytes�str�__annotations__�compilerrrrrr�<module>s�