AlkantarClanX12

Your IP : 18.189.194.44


Current Path : /opt/alt/python37/lib64/python3.7/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/encodings/__pycache__/punycode.cpython-37.opt-2.pyc

B

YI~d��@s�ddlZdd�Zdd�Zdd�Zdd	�Zd
d�ZdZd
d�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
Gdd�dej�ZGdd�dej�ZGdd �d ej�ZGd!d"�d"eej�ZGd#d$�d$eej�Zd%d&�ZdS)'�NcCsTt�}t�}x2|D]*}t|�dkr2|�t|��q|�|�qWt|�}t|�|fS)N�)�	bytearray�set�ord�append�add�sorted�bytes)�str�base�extended�c�r�7/opt/alt/python37/lib64/python3.7/encodings/punycode.py�	segregate
s
rcCs*d}x |D]}t|�|kr
|d7}q
W|S)Nr�)r)r
�max�resr
rrr�
selective_lens

rcCsRt|�}xD|d7}||krdS||}||kr:|d|fS||kr
|d7}q
WdS)Nr)���r)�len)r
�char�index�pos�lr
rrr�selective_findsrcCs�d}g}d}x~|D]v}d}}t|�}t||�}	|	d||}
xBt||||�\}}|dkr^P|
||7}
|�|
d�|}d}
qBW|}qW|S)Nrrrr)rrrr)r
rZoldchar�resultZoldindexr
rrrZcurlen�deltarrr�insertion_unsort0s$

rcCs,d|d|}|dkrdS|dkr(dS|S)N�$r�r)�j�biasrrrr�TFsr#s$abcdefghijklmnopqrstuvwxyz0123456789cCsrt�}d}xbt||�}||kr4|�t|�t|�S|�t|||d|�||d|}|d7}qWdS)Nrrr)rr#r�digitsr	)�Nr"rr!�trrr�generate_generalized_integerNs
r'cCs\|r|d}n|d}|||7}d}x|dkrB|d}|d7}q(W|d||d}|S)Ni��ri��#r�&r)r�first�numcharsZ	divisionsr"rrr�adapt[s

r-cCsTt�}d}x@t|�D]4\}}t||�}|�|�t||dk||d�}qWt|�S)N�Hrr)r�	enumerater'�extendr-r	)Zbaselen�deltasrr"Zpointsr�srrr�generate_integersjs

r3cCs8t|�\}}t||�}tt|�|�}|r4|d|S|S)N�-)rrr3r)�textrrr1rrr�punycode_encodeus
r6c
Csd}d}d}x�yt||�}Wn,tk
rJ|dkr>td��|ddfSX|d7}d|krhdkrvnn
|d}nHd|kr�dkr�nn
|d	}n&|dkr�td
||d��n|dfSt||�}	|||7}||	kr�||fS|d|	}|d7}qWdS)Nrr�strictzincomplete punicode string�A�Z�0�9�z Invalid extended code point '%s'r)r�
IndexError�UnicodeErrorr#)
r�extposr"�errorsr�wr!rZdigitr&rrr�decode_generalized_numbers2


rBc	Cs�d}d}d}d}x�|t|�kr�t||||�\}}|dkr<|S||d7}||t|�d7}|dkr�|dkrxtd|��td	�}|t|�d}|d|�t|�||d�}t||dkt|��}|}qW|S)
Nrrr.rri��r7zInvalid character U+%x�?)rrBr>r�chrr-)	rrr@rrr"r?Znewposrrrr�insertion_sort�s( rEcCs�t|t�r|�d�}t|t�r&t|�}|�d�}|dkrLd}t|d���}n.t|d|�d|�}t||dd�d���}t|||�S)N�asciir4r�r)�
isinstancer
�encode�
memoryviewr	�rfind�upperrE)r5r@rrrrrr�punycode_decode�s



rMc@s eZdZddd�Zddd�ZdS)	�Codecr7cCst|�}|t|�fS)N)r6r)�self�inputr@rrrrrI�szCodec.encodecCs*|dkrtd|��t||�}|t|�fS)N)r7�replace�ignorezUnsupported error handling )r>rMr)rOrPr@rrrr�decode�s
zCodec.decodeN)r7)r7)�__name__�
__module__�__qualname__rIrSrrrrrN�s
rNc@seZdZddd�ZdS)�IncrementalEncoderFcCst|�S)N)r6)rOrP�finalrrrrI�szIncrementalEncoder.encodeN)F)rTrUrVrIrrrrrW�srWc@seZdZddd�ZdS)�IncrementalDecoderFcCs$|jdkrtd|j��t||j�S)N)r7rQrRzUnsupported error handling )r@r>rM)rOrPrXrrrrS�s
zIncrementalDecoder.decodeN)F)rTrUrVrSrrrrrY�srYc@seZdZdS)�StreamWriterN)rTrUrVrrrrrZ�srZc@seZdZdS)�StreamReaderN)rTrUrVrrrrr[�sr[c	Cs tjdt�jt�jttttd�S)NZpunycode)�namerIrS�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforNrIrSrWrYrZr[rrrr�getregentry�src)rarrrrr#r$r'r-r3r6rBrErMrNrWrYrZr[rcrrrr�<module>s&