AlkantarClanX12

Your IP : 3.14.246.52


Current Path : /proc/self/root/usr/lib/python3.6/site-packages/pip/utils/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3.6/site-packages/pip/utils/__pycache__/encoding.cpython-36.pyc

3

�Pf��@sjddlZddlZddlZejdfejdfejdfejdfejdfejdfej	dfgZ
ejd	�Zd
d�Z
dS)�N�utf8�utf16zutf16-bezutf16-le�utf32zutf32-bezutf32-lescoding[:=]\s*([-\w.]+)cCs�x0tD](\}}|j|�r|t|�d�j|�SqWxV|jd�dd�D]@}|dd�dkrFtj|�rFtj|�j�djd�}|j|�SqFW|jtj	d��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)
�BOMS�
startswith�len�decode�split�ENCODING_RE�search�groups�locale�getpreferredencoding)�dataZbom�encoding�line�r�/usr/lib/python3.6/encoding.py�auto_decodes
r)�codecsr�re�BOM_UTF8�	BOM_UTF16�BOM_UTF16_BE�BOM_UTF16_LE�	BOM_UTF32�BOM_UTF32_BE�BOM_UTF32_LEr
�compilerrrrrr�<module>s