Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-39.pyc
Ðазад
a "�h^ � @ s� d dl Z d dlZd dlmZmZmZ ddlmZmZm Z m Z mZ e�d�Z G dd� de j�ZG dd � d e j�ZG d d� de j�ZG dd � d ee j�ZG dd� dee j�Zeee j d�dd�Ze �e� dS )� N)�Any�Optional�Tuple� )� IDNAError�alabel�decode�encode�ulabelu [.。.。]c @ sD e Zd Zdeeeeef d�dd�Zd eeeeef d�dd�ZdS ) �Codec�strict)�data�errors�returnc C s. |dkrt d�|���|sdS t|�t|�fS )Nr �Unsupported error handling "{}"�� r )r �formatr �len��selfr r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/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__�strr �bytes�intr r r r r r r s r c @ s( e Zd Zeeeeeef d�dd�ZdS )�IncrementalEncoder�r r �finalr c 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 r# �labels�trailing_dot�result�size�labelZresult_bytesr r r �_buffer_encode s0 z!IncrementalEncoder._buffer_encodeN) r r r r �boolr r r r/ r r r r r! s r! c @ s( e Zd Zeeeeeef d�dd�ZdS )�IncrementalDecoderr"