????

Your IP : 3.145.199.42


Current Path : /lib/python3.10/encodings/__pycache__/
Upload File :
Current File : //lib/python3.10/encodings/__pycache__/idna.cpython-310.pyc

o

�*�g�#�@s�ddlZddlZddlZddlmZe�d�ZdZdZdd�Z	dd	�Z
d
d�ZGdd
�d
ej�ZGdd�dej
�ZGdd�dej�ZGdd�deej�ZGdd�deej�Zdd�ZdS)�N)�	ucd_3_2_0u[.。.。]sxn--zxn--cCs�g}|D]}t�|�rq|�t�|��qd�|�}t�d|�}|D]5}t�|�sQt�|�sQt�	|�sQt�
|�sQt�|�sQt�|�sQt�
|�sQt�|�sQt�|�rWtd|��q"dd�|D�}t|�r|tdd�|D��rptd��|d	rx|d
s|td��|S)N��NFKCzInvalid character %rcSsg|]}t�|��qS�)�
stringprep�in_table_d1��.0�xrr�%/usr/lib/python3.10/encodings/idna.py�
<listcomp>)sznameprep.<locals>.<listcomp>css�|]}t�|�VqdS)N)r�in_table_d2rrrr�	<genexpr>1s�znameprep.<locals>.<genexpr>zViolation of BIDI requirement 2r���zViolation of BIDI requirement 3)r�in_table_b1�append�map_table_b2�join�unicodedata�	normalize�in_table_c12�in_table_c22�in_table_c3�in_table_c4�in_table_c5�in_table_c6�in_table_c7�in_table_c8�in_table_c9�UnicodeError�any)�label�newlabel�c�RandALrrr�nameprepsD


��������	�r%cCs�z|�d�}Wn	tyYnwdt|�krdkr#|Std��td��t|�}z|�d�}Wn	ty;Ynwdt|�krIdkrN|Std��td��|�t�r[td��|�d�}t|}dt|�krqdkrv|Std��td��)N�asciir�@�label empty or too longzLabel starts with ACE prefix�punycode)�encoder�lenr%�
startswith�sace_prefix�
ace_prefix)r!rrr�ToASCII<s6����

�r/cCs�t|t�rd}nz	|�d�}d}Wntyd}Ynw|s6t|�}z|�d�}Wnty5td��w|�t�s@t|d�S|tt�d�}|�	d�}t
|�}t|d���t|d�krctd||��|S)NTr&FzInvalid character in IDN labelr)zIDNA does not round-trip)�
isinstance�bytesr*rr%r,r.�strr+�decoder/�lower)r!�
pure_ascii�label1�result�label2rrr�	ToUnicodegs.

��


r9c@s eZdZddd�Zddd�ZdS)�Codec�strictcCs|dkr
td|��|sdSz|�d�}Wn	tyYn5w|�d�}|dd�D]}dt|�kr;dks@td	��td	��q*t|d�dkrMtd
��|t|�fSt�}t�|�}|rg|dsgd}|d=nd}|D]}|rt|�d�|�t|��qkt	||�t|�fS)Nr;�unsupported error handling ��rr&�.rrr'r(zlabel too longr>)
rr*�UnicodeEncodeError�splitr+�	bytearray�dots�extendr/r1)�self�input�errorsr7�labelsr!�trailing_dotrrrr*�s<�
��

zCodec.encodecCs�|dkr
td|��|sdSt|t�st|�}t|vr/z
|�d�t|�fWSty.Ynw|�d�}|rDt|d�dkrDd}|d=nd	}g}|D]	}|�t	|��qJd�
|�|t|�fS)
Nr;�Unsupported error handling �rrr&r?rr�.r)rr0r1r.r3r+�UnicodeDecodeErrorrArr9r)rErFrGrHrIr7r!rrrr3�s*
�
zCodec.decodeN)r;)�__name__�
__module__�__qualname__r*r3rrrrr:�s
%r:c@�eZdZdd�ZdS)�IncrementalEncoderc	Cs�|dkr
td|��|sdSt�|�}d}|r*|ds!d}|d=n	|s*|d=|r*d}t�}d}|D]}|r>|�d�|d7}|�t|��|t|�7}q1||7}|t|�7}t|�|fS)	Nr;r<r=r>rr?r�)rrCrArBrDr/r+r1�	rErFrG�finalrHrIr7�sizer!rrr�_buffer_encode�s2

z!IncrementalEncoder._buffer_encodeN)rNrOrPrWrrrrrR��rRc@rQ)�IncrementalDecoderc	Cs�|dkr
td|��|sdSt|t�rt�|�}n
t|d�}|�d�}d}|r:|ds1d}|d=n	|s:|d=|r:d}g}d}|D]}|�t|��|rO|d	7}|t|�7}q@d�|�|}|t|�7}||fS)
Nr;rJrKr&rLrrrrS)	rr0r2rCrArr9r+rrTrrr�_buffer_decode�s6


z!IncrementalDecoder._buffer_decodeN)rNrOrPrZrrrrrY�rXrYc@�eZdZdS)�StreamWriterN�rNrOrPrrrrr\"�r\c@r[)�StreamReaderNr]rrrrr_%r^r_c	Cs tjdt�jt�jttttd�S)N�idna)�namer*r3�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor:r*r3rRrYr\r_rrrr�getregentry*s�rh)r�rerfrr�compilerCr.r-r%r/r9r:�BufferedIncrementalEncoderrR�BufferedIncrementalDecoderrYr\r_rhrrrr�<module>s
.+)H#'

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...