$25 GRAYBYTE WORDPRESS FILE MANAGER $72

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python312/lib64/python3.12/email/__pycache__/

HOME
Current File : /opt/alt/python312/lib64/python3.12/email/__pycache__//_encoded_words.cpython-312.opt-1.pyc
�

��_i]!��2�dZddlZddlZddlZddlZddlmZmZddlm	Z	gd�Z
ejejd�jd��Zd�ZGd	�d
e�Ze�Zdeed�<d
�Zd�Zd�Zd�Zd�Zeed�Zd�Zeed�Zeed�Zdd�Zy)z� Routines for manipulating RFC2047 encoded words.

This is currently a package-private API, but will be considered for promotion
to a public API if there is demand.

�N)�
ascii_letters�digits)�errors)�decode_q�encode_q�decode_b�encode_b�len_q�len_b�decode�encodes=([a-fA-F0-9]{2})c�f�tj|jd�j��S)N�)�bytes�fromhex�groupr)�ms �;/opt/alt/python312/lib64/python3.12/email/_encoded_words.py�<lambda>rAs��%�-�-�����
� 1� 1� 3�4�c�@�|jdd�}t|�gfS)N�_� )�replace�_q_byte_subber)�encodeds rrrCs"���o�o�d�D�)�G��'�"�B�&�&rc�b�eZdZdejd�zejd�zZd�Zy)�	_QByteMaps-!*+/�asciic�v�||jvrt|�||<||Sdj|�||<||S)Nz={:02X})�safe�chr�format)�self�keys  r�__missing__z_QByteMap.__missing__MsG���$�)�)���C��D��I��C�y��"�(�(��-�D��I��C�y�rN)�__name__�
__module__�__qualname__rr
rr!r&�rrrrIs/���*�m�*�*�7�3�3�m�f�m�m�G�6L�L�D�rr�_� c�2�djd�|D��S)N�c3�.K�|]
}t|���y�w�N)�_q_byte_map��.0�xs  r�	<genexpr>zencode_q.<locals>.<genexpr>Zs����3�7�a�;�q�>�7�s�)�join��bstrings rrrYs��
�7�7�3�7�3�3�3rc�&�td�|D��S)Nc3�@K�|]}tt|����y�wr0)�lenr1r2s  rr5zlen_q.<locals>.<genexpr>]s����4�G�q�s�;�q�>�"�G�s�)�sumr7s rr
r
\s���4�G�4�4�4rc�P�t|�dz}|rddd|z
nd}	tj||zd��|rtj�gfSgfS#t
j$r�	tj|d��tj�gfcYS#t
j$r|	tj|dzd��tj�tj�gfcYcYS#t
j$r|tj�gfcYcYcYSwxYwwxYwwxYw)N�s===rT)�validateFs==)	r;�base64�	b64decoder�InvalidBase64PaddingDefect�binascii�Error�InvalidBase64CharactersDefect�InvalidBase64LengthDefect)r�pad_err�missing_paddings   rrrds7���'�l�Q��G�,3�f�Z�a��i�(��O�E����W��6��F�5<�V�
.�
.�
0�1�
�	
�BD�
�	
���>�>�E�	E�� � ��5�9��5�5�7�8��
���~�~�	E�
E��$�$�W�u�_�u�E��9�9�;��6�6�8�:����
�>�>�
E���!A�!A�!C� D�D�D�

E��	E��E�sZ�0A�
A�D%�$+B�D%�D!�&AC,�'D!�(D%�,*D�D!�D%�D�D!�!D%c�J�tj|�jd�S)Nr)r@�	b64encoderr7s rr	r	�s�����G�$�+�+�G�4�4rc�N�tt|�d�\}}|dz|rdzSdzS)N�r>r)�divmodr;)r8�groups_of_3�leftovers   rrr�s0��"�3�w�<��3��K����?�8�a�3�3��3�3r)�q�bc�<�|jd�\}}}}}|jd�\}}}|j�}|jdd�}t	||�\}}	|j|�}||||fS#t$r=|jtjd|�d���|j|d�}Y�Kttf$rP|jdd�}|j�dk7r(|jtjd|�d	���Y��wxYw)
a�Decode encoded word and return (string, charset, lang, defects) tuple.

    An RFC 2047/2243 encoded word has the form:

        =?charset*lang?cte?encoded_string?=

    where '*lang' may be omitted but the other parts may not be.

    This function expects exactly such a string (that is, it does not check the
    syntax and may raise errors if the string is not well formed), and returns
    the encoded_string decoded first from its Content Transfer Encoding and
    then from the resulting bytes into unicode using the specified charset.  If
    the cte-decoded string does not successfully decode using the specified
    character set, a defect is added to the defects list and the unknown octets
    are replaced by the unicode 'unknown' character \uFDFF.

    The specified charset and language are returned.  The default for language,
    which is rarely if ever encountered, is the empty string.

    �?�*r�surrogateescapez0Encoded word contains bytes not decodable using z charset�unknown-8bitzUnknown charset z* in encoded word; decoded as unknown bytes)
�split�	partition�lowerr
�
_cte_decodersr�UnicodeDecodeError�appendr�UndecodableBytesDefect�LookupError�UnicodeEncodeError�CharsetError)	�ewr+�charset�cte�
cte_string�langr8�defects�strings	         rrr�s1��*&(�X�X�c�]�"�A�w��Z���(�(��-��G�Q��

�)�)�+�C�����):�;�G�$�S�)�'�2��G�W�
?�����(���7�D�'�)�)���<����v�4�4�62�29��H�6F�G�	H�����):�;���+�,�?�����):�;���=�=�?�n�,��N�N�6�.�.�1A�'��M<�0=�>�
?��?�s�!A8�8AD�=AD�Dc��|dk(r|jdd�}n|j|�}|�(td|�}td|�}||z
dkrdnd}t||�}|rd|z}dj||||�S)	aEncode string using the CTE encoding that produces the shorter result.

    Produces an RFC 2047/2243 encoded word of the form:

        =?charset*lang?cte?encoded_string?=

    where '*lang' is omitted unless the 'lang' parameter is given a value.
    Optional argument charset (defaults to utf-8) specifies the charset to use
    to encode the string to binary before CTE encoding it.  Optional argument
    'encoding' is the cte specifier for the encoding that should be used ('q'
    or 'b'); if it is None (the default) the encoding which produces the
    shortest encoded sequence is used, except that 'q' is preferred if it is up
    to five characters longer.  Optional argument 'lang' (default '') gives the
    RFC 2243 language string to specify in the encoded word.

    rVrrUrPrQ�rTz=?{}{}?{}?{}?=)r
�_cte_encode_length�
_cte_encodersr#)rgrb�encodingrer8�qlen�blenrs        rr
r
�s���"�.� ��-�-��):�;���-�-��(����!�#�&�w�/��!�#�&�w�/����+��/�3�s���H�%�g�.�G���T�z���"�"�7�D�(�G�D�Dr)zutf-8Nr.)�__doc__�rer@rC�	functoolsrgrr�emailr�__all__�partial�compile�subrr�dictrr1�ordrr
rr	rrZrrkrjr
r*rr�<module>rys����R
�
���(��
��#��"�"�:�2�:�:�.C�#D�#H�#H�4�6��'�	��	��k����C��H��4�5�$E�L5�4�
�	��
�
'*�V
�	��
�
�	���
Er


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.35 AM
root / linksafe
0755
__init__.cpython-312.opt-1.pyc
1.89 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
__init__.cpython-312.opt-2.pyc
1.311 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
__init__.cpython-312.pyc
1.89 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_encoded_words.cpython-312.opt-1.pyc
8.127 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_encoded_words.cpython-312.opt-2.pyc
6.304 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_encoded_words.cpython-312.pyc
8.127 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_header_value_parser.cpython-312.opt-1.pyc
130.001 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_header_value_parser.cpython-312.opt-2.pyc
113.851 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_header_value_parser.cpython-312.pyc
130.062 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_parseaddr.cpython-312.opt-1.pyc
22.716 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_parseaddr.cpython-312.opt-2.pyc
19.943 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_parseaddr.cpython-312.pyc
22.716 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_policybase.cpython-312.opt-1.pyc
18.213 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_policybase.cpython-312.opt-2.pyc
9.305 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
_policybase.cpython-312.pyc
18.213 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
base64mime.cpython-312.opt-1.pyc
3.868 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
base64mime.cpython-312.opt-2.pyc
2.163 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
base64mime.cpython-312.pyc
3.868 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
charset.cpython-312.opt-1.pyc
14.836 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
charset.cpython-312.opt-2.pyc
8.717 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
charset.cpython-312.pyc
14.901 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
contentmanager.cpython-312.opt-1.pyc
12.088 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
contentmanager.cpython-312.opt-2.pyc
12.088 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
contentmanager.cpython-312.pyc
12.088 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
encoders.cpython-312.opt-1.pyc
2.056 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
encoders.cpython-312.opt-2.pyc
1.738 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
encoders.cpython-312.pyc
2.056 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
errors.cpython-312.opt-1.pyc
6.872 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
errors.cpython-312.opt-2.pyc
5.414 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
errors.cpython-312.pyc
6.872 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
feedparser.cpython-312.opt-1.pyc
19.163 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
feedparser.cpython-312.opt-2.pyc
17.576 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
feedparser.cpython-312.pyc
19.35 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
generator.cpython-312.opt-1.pyc
20.198 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
generator.cpython-312.opt-2.pyc
16.627 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
generator.cpython-312.pyc
20.198 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
header.cpython-312.opt-1.pyc
23.95 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
header.cpython-312.opt-2.pyc
18.507 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
header.cpython-312.pyc
23.95 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
headerregistry.cpython-312.opt-1.pyc
30.202 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
headerregistry.cpython-312.opt-2.pyc
24.757 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
headerregistry.cpython-312.pyc
30.255 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
iterators.cpython-312.opt-1.pyc
2.749 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
iterators.cpython-312.opt-2.pyc
2.173 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
iterators.cpython-312.pyc
2.749 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
message.cpython-312.opt-1.pyc
51.826 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
message.cpython-312.opt-2.pyc
35.946 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
message.cpython-312.pyc
51.826 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
parser.cpython-312.opt-1.pyc
6.604 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
parser.cpython-312.opt-2.pyc
3.704 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
parser.cpython-312.pyc
6.604 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
policy.cpython-312.opt-1.pyc
11.541 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
policy.cpython-312.opt-2.pyc
5.526 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
policy.cpython-312.pyc
11.541 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
quoprimime.cpython-312.opt-1.pyc
9.732 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
quoprimime.cpython-312.opt-2.pyc
6.405 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
quoprimime.cpython-312.pyc
9.732 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
utils.cpython-312.opt-1.pyc
15.611 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
utils.cpython-312.opt-2.pyc
12.479 KB
8 Jan 2026 6.21 PM
root / linksafe
0644
utils.cpython-312.pyc
15.611 KB
8 Jan 2026 6.21 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF