%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core/17212/usr/lib/python3/dist-packages/idna/__pycache__/
Upload File :
Create Path :
Current File : //snap/core/17212/usr/lib/python3/dist-packages/idna/__pycache__/codec.cpython-35.pyc



	QZU��@s�ddlmZmZmZmZmZddlZddlZejd�Z	Gdd�dej
�Z
Gdd�dej�ZGdd	�d	ej
�ZGd
d�de
ej�ZGdd
�d
e
ej�Zdd�ZdS)�)�encode�decode�alabel�ulabel�	IDNAErrorNu[.。.。]c@s.eZdZddd�Zddd�ZdS)�Codec�strictcCsA|dkr!tdj|���|s+dSt|�t|�fS)Nrz Unsupported error handling "{0}"�r)r	r)r�formatr�len)�self�data�errors�r�,/usr/lib/python3/dist-packages/idna/codec.pyr	s
zCodec.encodecCsA|dkr!tdj|���|s+dSt|�t|�fS)Nrz Unsupported error handling "{0}"r	r)r	r)rr
rr)rr
rrrrrs
zCodec.decodeN)�__name__�
__module__�__qualname__rrrrrrrs
rc@seZdZdd�ZdS)�IncrementalEncoderc	Cs�|dkr!tdj|���|s+dStj|�}d}|ry|ds`d}|d	=n|sy|d
=|ryd}g}d}xA|D]9}|jt|��|r�|d7}|t|�7}q�Wdj|�|}|t|�7}||fS)Nrz Unsupported error handling "{0}"r	r��.)r	r���rr)rr
�_unicode_dots_re�split�appendrr�join)	rr
r�final�labels�trailing_dot�result�size�labelrrr�_buffer_encodes0



z!IncrementalEncoder._buffer_encodeN)rrrr"rrrrrsrc@seZdZdd�ZdS)�IncrementalDecoderc	Cs0|dkr!tdj|���|s+dSt|t�rLtj|�}n(t|�}t|d�|jd�}d}|r�|d	s�d}|d
=n|s�|d=|r�d}g}d}xA|D]9}|jt|��|r�|d7}|t	|�7}q�Wdj
|�|}|t	|�7}||fS)Nrz Unsupported error handling "{0}"r	r�asciirr)r	rrrr)rr
�
isinstanceZunicoderr�strrrrr)	rr
rrrrrr r!rrr�_buffer_decode?s8




z!IncrementalDecoder._buffer_decodeN)rrrr'rrrrr#>sr#c@seZdZdS)�StreamWriterN)rrrrrrrr(gsr(c@seZdZdS)�StreamReaderN)rrrrrrrr)jsr)cCs@tjdddt�jdt�jdtdtdtdt�S)	N�nameZidnarr�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforrrrr#r(r)rrrr�getregentryms	r1)Z	idna.corerrrrrr/�re�compilerr�BufferedIncrementalEncoderr�BufferedIncrementalDecoderr#r(r)r1rrrr�<module>s(!)

Zerion Mini Shell 1.0