Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib/python3.7/site-packages/idna/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/idna/__pycache__/codec.cpython-37.pyc

B

�'�X��@s�ddlmZmZmZmZmZddlZddlZe�d�Z	Gdd�dej
�Z
Gdd�dej�ZGd	d
�d
ej
�ZGdd�de
ej�ZGd
d�de
ej�Zdd�ZdS)�)�encode�decode�alabel�ulabel�	IDNAError�Nu[.。.。]c@s eZdZddd�Zddd�ZdS)	�Codec�strictcCs.|dkrtd�|���|sdSt|�t|�fS)Nr	z Unsupported error handling "{0}")�r)r�formatr�len)�self�data�errors�r�;/opt/alt/python37/lib/python3.7/site-packages/idna/codec.pyr	s
zCodec.encodecCs.|dkrtd�|���|sdSt|�t|�fS)Nr	z Unsupported error handling "{0}")r
r)rrrr)r
rrrrrrs
zCodec.decodeN)r	)r	)�__name__�
__module__�__qualname__rrrrrrrs

rc@seZdZdd�ZdS)�IncrementalEncoderc	Cs�|dkrtd�|���|sdSt�|�}d}|rV|dsDd}|d=n|sV|d=|rVd}g}d}x2|D]*}|�t|��|r�|d7}|t|�7}qdWd�|�|}|t|�7}||fS)	Nr	z Unsupported error handling "{0}")r
rr
����.rr)rr�_unicode_dots_re�split�appendrr�join)	r
rr�final�labels�trailing_dot�result�size�labelrrr�_buffer_encodes0

z!IncrementalEncoder._buffer_encodeN)rrrr"rrrrrsrc@seZdZdd�ZdS)�IncrementalDecoderc	Cs�|dkrtd�|���|sdSt|t�r4t�|�}nt|�}t|d�|�d�}d}|r~|dsld}|d=n|s~|d=|r~d}g}d}x2|D]*}|�t|��|r�|d	7}|t	|�7}q�Wd�
|�|}|t	|�7}||fS)
Nr	z Unsupported error handling "{0}")r
r�asciirr
rrr)rr�
isinstance�unicoderr�strrrrr)	r
rrrrrrr r!rrr�_buffer_decode?s8



z!IncrementalDecoder._buffer_decodeN)rrrr(rrrrr#>sr#c@seZdZdS)�StreamWriterN)rrrrrrrr)gsr)c@seZdZdS)�StreamReaderN)rrrrrrrr*jsr*c	Cs tjdt�jt�jttttd�S)N�idna)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforrrrr#r)r*rrrr�getregentrymsr3)�corerrrrrr1�re�compilerr�BufferedIncrementalEncoderr�BufferedIncrementalDecoderr#r)r*r3rrrr�<module>s
!)

Hacked By AnonymousFox1.0, Coded By AnonymousFox