관리-도구
편집 파일: codec.cpython-39.opt-1.pyc
a ����[��f} ����������������������@���s����d�dl�mZmZmZmZmZ�ddlZddlZddlm Z m Z �e�d�ZG�dd��dej �Z G�dd ��d ej�ZG�d d��dej�ZG�dd ��d e ej�ZG�dd��de ej�Zdd��ZdS�)����)�encode�decode�alabel�ulabel� IDNAError�����N)�Tuple�Optionalu���[.。.。]c�������������������@���s ���e�Zd�Zddd�Zddd�ZdS�) �Codec�strictc�����������������C���s.���|dkrt�d�|���|sdS�t|�t|�fS�)Nr����Unsupported error handling "{}")�����r���)r����formatr����len��self�data�errors��r����:/usr/lib/python3.9/site-packages/pip/_vendor/idna/codec.pyr��� ���s ����zCodec.encodec�����������������C���s.���|dkrt�d�|���|sdS�t|�t|�fS�)Nr���r������r���)r���r���r���r���r���r���r���r���r������s ����zCodec.decodeN)r���)r���)�__name__� __module__�__qualname__r���r���r���r���r���r���r ������s��� r ���c�������������������@���s���e�Zd�Zdd��ZdS�)�IncrementalEncoderc����������� ������C���s����|dkrt�d�|���|sdS�t�|�}d}|rV|d�sDd}|d=�n|sV|d=�|rVd}g�}d}|D�]*}|�t|���|r�|d7�}|t|�7�}qbd�|�|�} |t|�7�}| |fS�� Nr���r���r���r�������.r���r���)r���r����_unicode_dots_re�split�appendr���r����join� r���r���r����final�labelsZtrailing_dot�result�sizeZlabelZ result_strr���r���r����_buffer_encode���s0���� z!IncrementalEncoder._buffer_encodeN)r���r���r���r(���r���r���r���r���r������s���r���c�������������������@���s���e�Zd�Zdd��ZdS�)�IncrementalDecoderc����������� ������C���s����|dkrt�d�|���|sdS�t�|�}d}|rV|d�sDd}|d=�n|sV|d=�|rVd}g�}d}|D�]*}|�t|���|r�|d7�}|t|�7�}qbd�|�|�} |t|�7�}| |fS�r���)r���r���r���r ���r!���r���r���r"���r#���r���r���r����_buffer_decodeA���s0���� z!IncrementalDecoder._buffer_decodeN)r���r���r���r*���r���r���r���r���r)���@���s���r)���c�������������������@���s���e�Zd�ZdS�)�StreamWriterN�r���r���r���r���r���r���r���r+���b���s���r+���c�������������������@���s���e�Zd�ZdS�)�StreamReaderNr,���r���r���r���r���r-���f���s���r-���c���������������� ���C���s ���t�jdt��jt��jttttd�S�)NZidna)�namer���r����incrementalencoder�incrementaldecoder�streamwriter�streamreader) �codecs� CodecInfor ���r���r���r���r)���r+���r-���r���r���r���r����getregentryj���s�����r5���)Zcorer���r���r���r���r���r3����re�typingr���r ����compiler���r ����BufferedIncrementalEncoderr����BufferedIncrementalDecoderr)���r+���r-���r5���r���r���r���r����<module>���s��� ""