• File: codec.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/idna/__pycache__/codec.cpython-37.pyc
  • Date Modified: 07/07/2021 11:11 PM
  • File size: 2.95 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

'X@sddlmZmZmZmZmZddlZddlZedZ	Gdddej
Z
GdddejZGd	d
d
ej
ZGddde
ejZGd
dde
ejZddZdS))encodedecodealabelulabel	IDNAErrorNu[.。.。]c@s eZdZdddZdddZdS)	CodecstrictcCs.|dkrtd||sdSt|t|fS)Nr	z Unsupported error handling "{0}")r)rformatrlen)selfdataerrorsr;/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@seZdZddZdS)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_resplitappendrrjoin)	r
rrfinallabelstrailing_dotresultsizelabelrrr_buffer_encodes0

z!IncrementalEncoder._buffer_encodeN)rrrr"rrrrrsrc@seZdZddZdS)IncrementalDecoderc	Cs|dkrtd||sdSt|tr4t|}nt|}t|d|d}d}|r~|dsld}|d=n|s~|d=|r~d}g}d}x2|D]*}|t||r|d	7}|t	|7}qWd
||}|t	|7}||fS)
Nr	z Unsupported error handling "{0}")r
rasciirr
rrr)rr
isinstanceZunicoderrstrrrr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 tjdtjtjttttdS)NZidna)namerrincrementalencoderincrementaldecoderstreamwriterstreamreader)	codecs	CodecInforrrrr#r(r)rrrrgetregentrymsr1)Zcorerrrrrr/recompilerrBufferedIncrementalEncoderrBufferedIncrementalDecoderr#r(r)r1rrrr<module>s
!)