관리-도구
편집 파일: codec.cpython-311.pyc
� �܋fb � �n � d dl mZmZmZmZmZ ddlZddlZddlm Z m Z mZ ej d� � Z G d� dej � � Z G d� d ej � � Z G d � dej � � Z G d� d eej � � Z G d� deej � � Zdedeej fd�Z ej e� � dS )� )�encode�decode�alabel�ulabel� IDNAError� N)�Any�Tuple�Optionalu [.。.。]c �Z � e Zd Zddededeeef fd�Zddededeeef fd�ZdS ) �Codec�strict�data�errors�returnc � � |dk r"t d� |� � � � �|sdS t |� � t |� � fS )Nr �Unsupported error handling "{}"�� r )r �formatr �len��selfr r s �g/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/idna/codec.pyr zCodec.encode sN � ��X����?�F�F�v�N�N�O�O�O�� ��6��d�|�|�S��Y�Y�&�&r c � � |dk r"t d� |� � � � �|sdS t |� � t |� � fS )Nr r �� r )r r r r r s r r zCodec.decode sN � ��X����?�F�F�v�N�N�O�O�O�� ��5��d�|�|�S��Y�Y�&�&r N)r ) �__name__� __module__�__qualname__�strr �bytes�intr r � r r r r s� � � � � � �'� '�3� '�� '�5����;L� '� '� '� '�'� '�5� '�#� '�U�3��8�_� '� '� '� '� '� 'r r c �6 � e Zd Zdedededeeef fd�ZdS )�IncrementalEncoderr r �finalr c � � |dk r"t d� |� � � � �|sdS t � |� � }d}|r|d sd}|d= n |s|d= |rd}g }d}|D ]=}|� t |� � � � |r|dz }|t |� � z }�>d� |� � |z } |t |� � z }| |fS ) Nr r r r ���� .r r )r r �_unicode_dots_re�split�appendr r �join) r r r r'