ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/email/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/email/__pycache__/charset.cpython-311.opt-2.pyc

�

�f�B�	��gd�ZddlmZddlZddlZddlmZddlmZdZ	dZ
dZd	Zd
Z
dZdZid
e	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�de	e	df�d
d�de
e
df�de
e
df�de
ddf�de
ddf�e
ddfe
e
dfee
dfd ��Zid!d
�d"d
�d#d�d$d�d%d�d&d�d'd�d(d�d)d�d*d�d+d�d,d�d-d�d.d�d/d�d0d�d1d�dddd2dd3d
d4��Zd5d6dd7�Zdd8�Zd9�Zd:�Zd;�ZGd<�d=��ZdS)>)�Charset�	add_alias�add_charset�	add_codec�)�partialN)�errors)�encode_7or8bit�����us-asciizunknown-8bit�z
iso-8859-1z
iso-8859-2z
iso-8859-3z
iso-8859-4z
iso-8859-9ziso-8859-10ziso-8859-13ziso-8859-14ziso-8859-15ziso-8859-16zwindows-1252�viscii)NNN�big5�gb2312zeuc-jp�iso-2022-jp�	shift_jis�utf-8)rzkoi8-rr�latin_1zlatin-1�latin_2zlatin-2�latin_3zlatin-3�latin_4zlatin-4�latin_5zlatin-5�latin_6zlatin-6�latin_7zlatin-7�latin_8zlatin-8�latin_9zks_c_5601-1987zeuc-kr)zlatin-9�latin_10zlatin-10�cp949�euc_jp�euc_kr�ascii�eucgb2312_cn�big5_tw)rrrc�V�	|tkrtd���|||ft|<dS)Nz!SHORTEST not allowed for body_enc)�SHORTEST�
ValueError�CHARSETS)�charset�
header_enc�body_enc�output_charsets    �4/opt/alt/python311/lib64/python3.11/email/charset.pyrrjs:���,�8����<�=�=�=�#�X�~�>�H�W����c��	|t|<dS�N)�ALIASES)�alias�	canonicals  r.rr�s���
�G�E�N�N�Nr/c��	|t|<dSr1)�	CODEC_MAP)r*�	codecnames  r.rr�s���#�I�g���r/c�n�|tkr|�dd��S|�|��S)Nr#�surrogateescape)�UNKNOWN8BIT�encode)�string�codecs  r.�_encoder>�s4�������}�}�W�&7�8�8�8��}�}�U�#�#�#r/c�J�eZdZ	efd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
S)rc��	t|t��r|�d��nt|d��}n"#t$rt	j|���wxYw|���}t�||��|_	t�|j	ttdf��\}}}|s|j	}||_
||_t�||��|_t �|j	|j	��|_t �|j|j��|_dS)Nr#)�
isinstance�strr;�UnicodeErrorr�CharsetError�lowerr2�get�
input_charsetr)r'�BASE64�header_encoding�
body_encodingr-r6�input_codec�output_codec)�selfrG�henc�benc�convs     r.�__init__zCharset.__init__�s@��
	5��-��-�-�
<��$�$�W�-�-�-�-� #�M�7� ;� ;�
����	5�	5�	5��%�m�4�4�4�	5����%�+�+�-�-�
�$�[�[��
�F�F���$�<�<��(:�)1�6�4�(@�B�B���d�D��	&��%�D�#���!���%�k�k�$��5�5���%�=�=��);�)-�);�=�=���%�M�M�$�*=�*.�*=�?�?����s	�;>�Ac�4�|j���Sr1)rGrE�rMs r.�__repr__zCharset.__repr__�s���!�'�'�)�)�)r/c�f�t|��t|�����kSr1)rBrE)rM�others  r.�__eq__zCharset.__eq__�s%���4�y�y�C��J�J�,�,�.�.�.�.r/c�Z�	|jtkrdS|jtkrdStS)Nzquoted-printable�base64)rJ�QPrHr	rSs r.�get_body_encodingzCharset.get_body_encoding�s6��	����#�#�%�%�
�
�6�
)�
)��8�!�!r/c� �	|jp|jSr1)r-rGrSs r.�get_output_charsetzCharset.get_output_charset
s��	�
�"�8�d�&8�8r/c��	|jpd}t||��}|�|��}|�|S|�||��S)Nr)rLr>�_get_encoder�
header_encode)rMr<r=�header_bytes�encoder_modules     r.r`zCharset.header_encodesY��		��!�/�Z���v�u�-�-���*�*�<�8�8���!��M��+�+�L�%�@�@�@r/c�~�	|jpd}t||��}|�|��}t|j|���}|���}t
|��tz}g}	g}
t|��|z
}|D]�}|
�	|��t�|
��}
|�t|
|����}||kr�|
�
��|	s|
s|	�	d��nN|	rdnd}t�|
��}t||��}|	�	||����|g}
t|��|z
}��t�|
��}t||��}|	�	||����|	S)Nr)r*� r)rLr>r_rr`r]�len�RFC2047_CHROME_LEN�next�append�EMPTYSTRING�join�
header_length�pop)rMr<�
maxlengthsr=rarb�encoderr*�extra�lines�current_line�maxlen�	character�	this_line�length�	separator�joined_lines                 r.�header_encode_lineszCharset.header_encode_lines%s���	�"�!�/�Z���v�u�-�-���*�*�<�8�8���.�6��F�F�F���)�)�+�+���G���1�1�������j�!�!�E�)���	2�	2�I����	�*�*�*�#�(�(��6�6�I�#�1�1�'�)�W�2M�2M�N�N�F������ � �"�"�"��8�\�8��L�L��&�&�&�&�(-�!5���2�I�"-�"2�"2�<�"@�"@�K�#*�;��#>�#>�L��L�L����!6�!6�7�7�7� )�{���j�)�)�E�1���!�&�&�|�4�4���{�E�2�2��
���W�W�\�*�*�+�+�+��r/c�N�|jtkrtjS|jtkrtjS|jtkr\tj�|��}tj�|��}||krtjStjSdSr1)rIrH�email�
base64mimerZ�
quoprimimer'rk)rMra�len64�lenqps    r.r_zCharset._get_encodercs�����6�)�)��#�#�
�
!�R�
'�
'��#�#�
�
!�X�
-�
-��$�2�2�<�@�@�E��$�2�2�<�@�@�E��u�}�}��'�'��'�'��4r/c�.�	|s|S|jturNt|t��r|�|j��}tj�|��S|jturct|t��r|�|j��}|�
d��}tj�|��St|t��r-|�|j���
d��}|S)N�latin1r#)rJrHrArBr;r-rzr{�body_encoderZ�decoder|)rMr<s  r.r�zCharset.body_encoders���	��	��M����'�'��&�#�&�&�
<����t�':�;�;���#�/�/��7�7�7�
�
�2�
%�
%��&�#�&�&�
<����t�':�;�;���]�]�8�,�,�F��#�/�/��7�7�7��&�#�&�&�
L����t�':�;�;�B�B�7�K�K���Mr/N)
�__name__�
__module__�__qualname__�DEFAULT_CHARSETrQrTrWr[r]r`rxr_r��r/r.rr�s�������*�V&5�?�?�?�?�B*�*�*�/�/�/�"�"�"�*9�9�9�A�A�A�&<�<�<�|
�
�
�����r/r)�__all__�	functoolsr�email.base64mimerz�email.quoprimimer�email.encodersr	rZrHr'rfr�r:rir)r2r6rrrr>rr�r/r.�<module>r�s���
������������������������)�)�)�)�)�)�����������������B�r��-���B�r��-���B�r��-�	�
�B�r��-���B�r��-���B�r��-���B�r��-���B�r��-���B�r��-�� �B�r��-�!�"�B�r��-�#�$
�B�r��-�%�&�-�'�(�F�v��-�)�*
�F�v��-�+�,
�F�t�
�6�-�.�F�t�
�6�/�0�t��-��v��-��v�w�/�5����>�
�|��
�|���|���|�	�
�|���|�
��|���|���|���|���}���}���}���}���}�� �}�!�"�}�#�$�������1����<"���

�
�	�?�?�?�?�8���#�#�#�$�$�$�m�m�m�m�m�m�m�m�m�mr/

Zerion Mini Shell 1.0