Your IP : 52.14.255.122


Current Path : /opt/alt/python36/lib64/python3.6/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/encodings/__pycache__/__init__.cpython-36.opt-2.pyc

3

��2a
�@s|ddlZddlZddlmZiZdZdgZejZGdd�dee	�Z
dd	�Zd
d�Zej
e�ejdkrxd
d�Zej
e�dS)�N�)�aliasesz--unknown--�*c@seZdZdS)�CodecRegistryErrorN)�__name__�
__module__�__qualname__�r	r	�-/opt/alt/python36/lib64/python3.6/__init__.pyr(srcCsjt|t�rt|d�}g}d}xB|D]:}|j�s6|dkrX|rH|rH|jd�|j|�d}q"d}q"Wdj|�S)N�asciiF�.�_T�)�
isinstance�bytes�str�isalnum�append�join)�encoding�chars�punct�cr	r	r
�normalize_encoding+s




rc
Cs�tj|t�}|tk	r|St|�}tj|�p:tj|jdd��}|dk	rN||g}n|g}xN|D]B}|sZd|krnqZytd|tdd�}Wntk
r�YqZXPqZWd}y
|j	}Wnt
k
r�d}YnX|dkr�dt|<dS|�}t|tj
��s:dt|�k�odkn�s$td|j|jf��t|d��s�t|d	��s�|d
dk	�rbt|d
��s�|ddk	�r�t|d��s�t|�dk�r�|ddk	�r�t|d��s�t|�dk�r�|ddk	�r�t|d��r�td
|j|jf��t|�dk�s|ddk�r0|ddt|�|jjdd	�d	f7}tj
|�}|t|<y|j�}Wnt
k
�rdYn$Xx |D]}	|	tk�rl|t|	<�qlW|S)Nrr
z
encodings.r)�fromlist�level��z#module "%s" (%s) failed to registerr���z'incompatible codecs in module "%s" (%s)�)N)�_cache�get�_unknownr�_aliases�replace�
__import__�_import_tail�ImportError�getregentry�AttributeErrorr�codecs�	CodecInfo�lenrr�__file__�callable�split�
getaliases)
r�entry�
norm_encoding�aliased_encoding�modnames�modname�modr*�codecaliases�aliasr	r	r
�search_functionGsf	




  ,,(


r;�win32cCsFy,ddl}||jd�kr*ddl}|jj�SWntk
r@YnXdS)NrF)�_bootlocale�getpreferredencodingZencodings.mbcs�mbcsr*r))rr=�	encodingsr	r	r
�_alias_mbcs�srA)r,�sysrrr"r$r(r%�LookupError�SystemErrorrrr;�register�platformrAr	r	r	r
�<module>sU



?>