$50 GRAYBYTE WORDPRESS FILE MANAGER $35

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

/opt/alt/python310/lib64/python3.10/email/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/email/__pycache__//_encoded_words.cpython-310.opt-1.pyc
o

���h]!�@s�dZddlZddlZddlZddlZddlmZmZddlm	Z	gd�Z
e�e�d�j
dd��Zd	d
�ZGdd�de�Ze�Zd
eed�<dd�Zdd�Zdd�Zdd�Zdd�Zeed�Zdd�Zeed�Zeed�Zd dd�ZdS)!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})cCst�|�d����S)N�)�bytes�fromhex�groupr)�m�r�;/opt/alt/python310/lib64/python3.10/email/_encoded_words.py�<lambda>AsrcCs|�dd�}t|�gfS)N�_� )�replace�_q_byte_subber)�encodedrrrrCsrc@s,eZdZde�d�e�d�Zdd�ZdS)�	_QByteMaps-!*+/�asciicCs4||jvrt|�||<||Sd�|�||<||S)Nz={:02X})�safe�chr�format)�self�keyrrr�__missing__Ms

�z_QByteMap.__missing__N)�__name__�
__module__�__qualname__rrrrr!rrrrrIsr�_� cCsd�dd�|D��S)N�css�|]}t|VqdS�N)�_q_byte_map��.0�xrrr�	<genexpr>Zs�zencode_q.<locals>.<genexpr>)�join��bstringrrrrYsrcCstdd�|D��S)Ncss�|]	}tt|�VqdSr()�lenr)r*rrrr-]s�zlen_q.<locals>.<genexpr>)�sumr/rrrr	\sr	cCs�t|�d}|rddd|�nd}ztj||dd�|r$t��gfWSgfWStjysztj|dd�t��gfWYStjyrztj|ddd�t��t��gfWYYStjyq|t��gfYYYSwww)N�s===�T)ZvalidateFs==)	r1�base64Z	b64decoderZInvalidBase64PaddingDefect�binascii�ErrorZInvalidBase64CharactersDefectZInvalidBase64LengthDefect)rZpad_errZmissing_paddingrrrrds2��
������rcCst�|��d�S)Nr)r5Z	b64encoderr/rrrr�srcCs(tt|�d�\}}|d|rdSdS)N�r3r)�divmodr1)r0Zgroups_of_3Zleftoverrrrr
�sr
)�q�bc	
Cs�|�d�\}}}}}|�d�\}}}|��}|�dd�}t||�\}}z|�|�}Wn=tyF|�t�	d|�d���|�|d�}Yn#t
tfyh|�dd�}|��dkrf|�t�d|�d	���Ynw||||fS)
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�appendrZUndecodableBytesDefect�LookupError�UnicodeEncodeErrorZCharsetError)	Zewr%�charsetZcteZ
cte_string�langr0Zdefects�stringrrrr�s&
���r�utf-8r'cCs||dkr|�dd�}n|�|�}|dur*td|�}td|�}||dkr(dnd}t||�}|r6d|}d	�||||�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.

    r?rr>Nr:r;�r=z=?{}{}?{}?{}?=)r�_cte_encode_length�
_cte_encodersr)rJrH�encodingrIr0ZqlenZblenrrrrr�s
r)rKNr')�__doc__�rer5r6�	functoolsrJrrZemailr�__all__�partial�compile�subrr�dictrr)�ordrr	rrr
rCrrNrMrrrrr�<module>s>)�&�+��


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
1.539 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
0.937 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
1.539 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_encoded_words.cpython-310.opt-1.pyc
5.621 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_encoded_words.cpython-310.opt-2.pyc
3.791 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_encoded_words.cpython-310.pyc
5.621 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_header_value_parser.cpython-310.opt-1.pyc
76.509 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_header_value_parser.cpython-310.opt-2.pyc
60.206 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_header_value_parser.cpython-310.pyc
76.54 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_parseaddr.cpython-310.opt-1.pyc
12.234 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_parseaddr.cpython-310.opt-2.pyc
9.422 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_parseaddr.cpython-310.pyc
12.234 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_policybase.cpython-310.opt-1.pyc
14.898 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_policybase.cpython-310.opt-2.pyc
5.933 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_policybase.cpython-310.pyc
14.898 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
base64mime.cpython-310.opt-1.pyc
3.18 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
base64mime.cpython-310.opt-2.pyc
1.465 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
base64mime.cpython-310.pyc
3.18 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
charset.cpython-310.opt-1.pyc
11.299 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
charset.cpython-310.opt-2.pyc
5.151 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
charset.cpython-310.pyc
11.319 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.opt-1.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.opt-2.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
contentmanager.cpython-310.pyc
7.231 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
encoders.cpython-310.opt-1.pyc
1.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
encoders.cpython-310.opt-2.pyc
1.277 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
encoders.cpython-310.pyc
1.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
errors.cpython-310.opt-1.pyc
5.729 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
errors.cpython-310.opt-2.pyc
4.36 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
errors.cpython-310.pyc
5.729 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
feedparser.cpython-310.opt-1.pyc
10.214 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
feedparser.cpython-310.opt-2.pyc
8.621 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
feedparser.cpython-310.pyc
10.346 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
generator.cpython-310.opt-1.pyc
12.707 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
generator.cpython-310.opt-2.pyc
9.126 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
generator.cpython-310.pyc
12.707 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
header.cpython-310.opt-1.pyc
16.092 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
header.cpython-310.opt-2.pyc
10.631 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
header.cpython-310.pyc
16.092 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
headerregistry.cpython-310.opt-1.pyc
21.372 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
headerregistry.cpython-310.opt-2.pyc
15.906 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
headerregistry.cpython-310.pyc
21.407 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
iterators.cpython-310.opt-1.pyc
1.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
iterators.cpython-310.opt-2.pyc
1.352 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
iterators.cpython-310.pyc
1.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
message.cpython-310.opt-1.pyc
36.934 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
message.cpython-310.opt-2.pyc
20.937 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
message.cpython-310.pyc
36.934 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
parser.cpython-310.opt-1.pyc
5.556 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
parser.cpython-310.opt-2.pyc
2.639 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
parser.cpython-310.pyc
5.556 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
policy.cpython-310.opt-1.pyc
9.442 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
policy.cpython-310.opt-2.pyc
3.404 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
policy.cpython-310.pyc
9.442 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
quoprimime.cpython-310.opt-1.pyc
7.46 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
quoprimime.cpython-310.opt-2.pyc
4.105 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
quoprimime.cpython-310.pyc
7.46 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
utils.cpython-310.opt-1.pyc
11.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
utils.cpython-310.opt-2.pyc
8.121 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
utils.cpython-310.pyc
11.604 KB
9 Jan 2026 2.05 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF