AlkantarClanX12
Current Path : /proc/self/root/usr/lib/python3.6/site-packages/pip/utils/__pycache__/ |
Current File : //proc/self/root/usr/lib/python3.6/site-packages/pip/utils/__pycache__/encoding.cpython-36.pyc |
3 �Pf� � @ sj d dl Z d dlZd dlZe jdfe jdfe jdfe jdfe jdfe jdfe j dfgZ ejd �Zd d� Z dS )� N�utf8�utf16zutf16-bezutf16-le�utf32zutf32-bezutf32-les coding[:=]\s*([-\w.]+)c C s� x0t D ](\}}| j|�r| t|�d� j|�S qW xV| jd�dd� D ]@}|dd� dkrFtj|�rFtj|�j� d jd�}| j|�S qFW | 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_decode s r )�codecsr �re�BOM_UTF8� BOM_UTF16�BOM_UTF16_BE�BOM_UTF16_LE� BOM_UTF32�BOM_UTF32_BE�BOM_UTF32_LEr �compiler r r r r r �<module> s