관리-도구
편집 파일: encoding.cpython-36.pyc
3 �Re � @ s� d dl Z d dlZd dlZd dlZd dlmZ erDd dlmZmZm Z e j dfe jdfe jdfe j dfe jdfe jd fe jd fgZejd�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 ](\}}| j|�r| t|�d� j|�S qW xf| jd�dd� D ]P}|dd� dkrFtj|�rFtj|�}|dk szt�|j� d jd�}| j|�S qFW | jt j d�p�tj� �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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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