관리-도구
편집 파일: encoding.cpython-37.pyc
B ��Re � @ s� d dl Z d dlZd dlZd dlZd dlmZ erDd dlmZmZm Z e j dfe jdfe jdfe j dfe jdfe jd fe jd fgZe�d�Zdd � ZdS )� N)�MYPY_CHECK_RUNNING)�List�Tuple�Textzutf-8zutf-16z utf-16-bez utf-16-lezutf-32z utf-32-bez utf-32-les coding[:=]\s*([-\w.]+)c C s� x0t D ](\}}| �|�r| t|�d� �|�S qW xf| �d�dd� D ]P}|dd� dkrFt�|�rFt�|�}|dk szt�|�� d �d�}| �|�S qFW | �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) �BOMS� startswith�len�decode�split�ENCODING_RE�search�AssertionError�groups�locale�getpreferredencoding�sys�getdefaultencoding)�data�bom�encoding�line�result� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/encoding.py�auto_decode s r )�codecsr �rer �pip._internal.utils.typingr �typingr r r �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