$95 GRAYBYTE WORDPRESS FILE MANAGER $62

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/python33/lib64/python3.3/email/__pycache__/

HOME
Current File : /opt/alt/python33/lib64/python3.3/email/__pycache__//_encoded_words.cpython-33.pyo
�
��f�c@svdZddlZddlZddlZddlZddlmZmZddlm	Z	ddddd	d
ddgZ
ejejd
�j
dd��Zdd�ZGdd�de�Ze�Zdeed�<dd�Zdd	�Zdd�Zdd�Zdd
�Zied6ed6Zdd�Zied6ed6Zied6ed6Zddddd�ZdS( u� 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.

iN(u
ascii_lettersudigits(uerrorsudecode_quencode_qudecode_buencode_bulen_qulen_budecodeuencodes=([a-fA-F0-9]{2})cCstt|jd�d�g�S(Nii(ubytesuintugroup(um((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu<lambda>Asu<lambda>cCs"|jdd�}t|�gfS(Ns_s (ureplaceu_q_byte_subber(uencoded((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyudecode_qCscBs@|EeZdZdejd�ejd�Zdd�ZdS(u	_QByteMaps-!*+/uasciicCs=||jkr"t|�||<ndj|�||<||S(Nu={:02X}(usafeuchruformat(uselfukey((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu__missing__Msu_QByteMap.__missing__N(u__name__u
__module__u__qualname__u
ascii_lettersuencodeudigitsusafeu__missing__(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu	_QByteMapIs u	_QByteMapu_u cCsdjdd�|D��S(Nucss|]}t|VqdS(N(u_q_byte_map(u.0ux((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu	<genexpr>Zsuencode_q.<locals>.<genexpr>(ujoin(ubstring((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyuencode_qYscCstdd�|D��S(Ncss|]}tt|�VqdS(N(ulenu_q_byte_map(u.0ux((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu	<genexpr>]sulen_q.<locals>.<genexpr>(usum(ubstring((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyulen_q\scCsg}t|�d}|rJ|jtj��|ddd|�}n|}ytj|dd
�|fSWn�tjk
rtj	�g}xydD]e}y%tj|d|dd�|fSWq�tjk
r�|dkr�|jtj��nYq�Xq�Wtd	��YnXdS(
Nis===uvalidateiiiis=uunexpected binascii.ErrorT(iiiiF(ulenuappenduerrorsuInvalidBase64PaddingDefectubase64u	b64decodeuTrueubinasciiuErroruInvalidBase64CharactersDefectuFalseuAssertionError(uencodedudefectsupad_errupadded_encodedui((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyudecode_bds"
%cCstj|�jd�S(Nuascii(ubase64u	b64encodeudecode(ubstring((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyuencode_b~scCs3tt|�d�\}}|d|r.dndS(Niii(udivmodulen(ubstringugroups_of_3uleftover((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyulen_b�suqubc	Cs*|jd�\}}}}}|jd�\}}}|j�}|jdd�}t||�\}}y|j|�}Wn�tk
r�|jtj	dj
|���|j|d�}YnXtk
r|jdd�}|j�dkr|jtjdj
|���nYnX||||fS(u�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 ﷿.

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

    u?u*uasciiusurrogateescapeu:Encoded word contains bytes not decodable using {} charsetuunknown-8bitu<Unknown charset {} in encoded word; decoded as unknown bytes(
usplitu	partitionuloweruencodeu
_cte_decodersudecodeuUnicodeErroruappenduerrorsuUndecodableBytesDefectuformatuLookupErroruCharsetError(	uewu_ucharsetucteu
cte_stringulangubstringudefectsustring((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyudecode�s"


uutf-8ucCs�|dkr!|jdd�}n|j|�}|d	kr{td|�}td|�}||dkrrdnd}nt||�}|r�d|}ndj||||�S(
uEncode 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.

    uunknown-8bituasciiusurrogateescapeuqubiu*u=?{}{}?{}?{}?=N(uencodeuNoneu_cte_encode_lengthu
_cte_encodersuformat(ustringucharsetuencodingulangubstringuqlenublenuencoded((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyuencode�s
(u__doc__ureubase64ubinasciiu	functoolsustringu
ascii_lettersudigitsuemailuerrorsu__all__upartialucompileusubu_q_byte_subberudecode_qudictu	_QByteMapu_q_byte_mapuorduencode_qulen_qudecode_buencode_bulen_bu
_cte_decodersudecodeu
_cte_encodersu_cte_encode_lengthuNoneuencode(((u9/opt/alt/python33/lib64/python3.3/email/_encoded_words.pyu<module>sH$		
*




Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-33.pyc
2.412 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
__init__.cpython-33.pyo
2.412 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_encoded_words.cpython-33.pyc
7.624 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_encoded_words.cpython-33.pyo
7.624 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_header_value_parser.cpython-33.pyc
122.196 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_header_value_parser.cpython-33.pyo
122.137 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_parseaddr.cpython-33.pyc
17.341 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_parseaddr.cpython-33.pyo
17.341 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_policybase.cpython-33.pyc
17.992 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_policybase.cpython-33.pyo
17.992 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
base64mime.cpython-33.pyc
3.928 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
base64mime.cpython-33.pyo
3.928 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
charset.cpython-33.pyc
14.27 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
charset.cpython-33.pyo
14.216 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
encoders.cpython-33.pyc
2.656 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
encoders.cpython-33.pyo
2.656 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
errors.cpython-33.pyc
10.988 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
errors.cpython-33.pyo
10.988 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
feedparser.cpython-33.pyc
14.98 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
feedparser.cpython-33.pyo
14.745 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
generator.cpython-33.pyc
17.689 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
generator.cpython-33.pyo
17.689 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
header.cpython-33.pyc
22.368 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
header.cpython-33.pyo
22.368 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
headerregistry.cpython-33.pyc
32.584 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
headerregistry.cpython-33.pyo
32.519 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
iterators.cpython-33.pyc
2.674 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
iterators.cpython-33.pyo
2.674 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
message.cpython-33.pyc
36.535 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
message.cpython-33.pyo
36.535 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
parser.cpython-33.pyc
7.689 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
parser.cpython-33.pyo
7.689 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
policy.cpython-33.pyc
9.681 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
policy.cpython-33.pyo
9.681 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
quoprimime.cpython-33.pyc
9.772 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
quoprimime.cpython-33.pyo
9.772 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
utils.cpython-33.pyc
13.279 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
utils.cpython-33.pyo
13.279 KB
17 Apr 2024 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF