$81 GRAYBYTE WORDPRESS FILE MANAGER $83

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/python34/lib64/python3.4/email/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/email/__pycache__//_encoded_words.cpython-34.pyc
�
e f��@svdZddlZddlZddlZddlZddlmZmZddlm	Z	ddddd	d
ddgZ
ejejd
�j
dd��Zdd�ZGdd�de�Ze�Zdeed�<dd�Zdd	�Zdd�Zdd�Zdd
�Zied6ed6Zdd�Zied6ed6Zied6ed6Zddddd�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})cCstt|jd�d�g�S)N��)�bytes�int�group)�m�r�9/opt/alt/python34/lib64/python3.4/email/_encoded_words.py�<lambda>AsrcCs"|jdd�}t|�gfS)N�_� )�replace�_q_byte_subber)�encodedrrrrCsc@s<eZdZdejd�ejd�Zdd�ZdS)�	_QByteMaps-!*+/�asciicCs=||jkr"t|�||<ndj|�||<||S)Nz={:02X})�safe�chr�format)�self�keyrrr�__missing__Msz_QByteMap.__missing__N)�__name__�
__module__�__qualname__rrrrr"rrrrrIs r�_� cCsdjdd�|D��S)N�css|]}t|VqdS)N)�_q_byte_map)�.0�xrrr�	<genexpr>Zszencode_q.<locals>.<genexpr>)�join)�bstringrrrrYscCstdd�|D��S)Ncss|]}tt|�VqdS)N)�lenr))r*r+rrrr,]szlen_q.<locals>.<genexpr>)�sum)r.rrrr	\scCsg}t|�d}|rJ|jtj��|ddd|�}n|}ytj|dd�|fSWn�tjk
rtj�g}xydD]e}y%tj|d	|dd
�|fSWq�tjk
r�|dkr�|jtj��nYq�Xq�Wt	d��YnXdS)
N�s===ZvalidateTrr
���=Fzunexpected binascii.Error)rr
r2r3)
r/�appendrZInvalidBase64PaddingDefect�base64Z	b64decode�binascii�ErrorZInvalidBase64CharactersDefect�AssertionError)r�defectsZpad_errZpadded_encoded�irrrrds"
%cCstj|�jd�S)Nr)r6Z	b64encoder)r.rrrr~scCs3tt|�d�\}}|d|r.dndS)Nr3r1r)�divmodr/)r.Zgroups_of_3Zleftoverrrrr
�s�q�bc	Cs*|jd�\}}}}}|jd�\}}}|j�}|jdd�}t||�\}}y|j|�}Wn�tk
r�|jtj	dj
|���|j|d�}YnXtk
r|jdd�}|j�dkr|jtjdj
|���nYnX||||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�surrogateescapez:Encoded word contains bytes not decodable using {} charsetzunknown-8bitz<Unknown charset {} in encoded word; decoded as unknown bytes)
�split�	partition�lowerr�
_cte_decodersr�UnicodeErrorr5rZUndecodableBytesDefectr�LookupErrorZCharsetError)	Zewr&�charsetZcteZ
cte_string�langr.r:�stringrrrr�s"


zutf-8r(cCs�|dkr!|jdd�}n|j|�}|dkr{td|�}td|�}||dkrrdnd}nt||�}|r�d|}nd	j||||�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.

    zunknown-8bitrrANr=r>�r@z=?{}{}?{}?{}?=)r�_cte_encode_length�
_cte_encodersr)rJrH�encodingrIr.ZqlenZblenrrrrr�s
)�__doc__�rer6r7�	functoolsrJrrZemailr�__all__�partial�compile�subrr�dictrr)�ordrr	rrr
rErrMrLrrrrr�<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-34.pyc
1.747 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
1.747 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_encoded_words.cpython-34.pyc
5.928 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_encoded_words.cpython-34.pyo
5.928 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_header_value_parser.cpython-34.pyc
85.671 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_header_value_parser.cpython-34.pyo
85.614 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_parseaddr.cpython-34.pyc
13.518 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_parseaddr.cpython-34.pyo
13.518 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_policybase.cpython-34.pyc
14.488 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
_policybase.cpython-34.pyo
14.488 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base64mime.cpython-34.pyc
3.299 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
base64mime.cpython-34.pyo
3.299 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
charset.cpython-34.pyc
11.971 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
charset.cpython-34.pyo
11.928 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
contentmanager.cpython-34.pyc
7.961 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
contentmanager.cpython-34.pyo
7.961 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
encoders.cpython-34.pyc
1.703 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
encoders.cpython-34.pyo
1.703 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyc
6.131 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
errors.cpython-34.pyo
6.131 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
feedparser.cpython-34.pyc
11.563 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
feedparser.cpython-34.pyo
11.396 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
generator.cpython-34.pyc
13.273 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
generator.cpython-34.pyo
13.273 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
header.cpython-34.pyc
17.502 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
header.cpython-34.pyo
17.502 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
headerregistry.cpython-34.pyc
22.113 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
headerregistry.cpython-34.pyo
22.054 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
iterators.cpython-34.pyc
1.998 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
iterators.cpython-34.pyo
1.998 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
message.cpython-34.pyc
38.762 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
message.cpython-34.pyo
38.762 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
parser.cpython-34.pyc
5.779 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
parser.cpython-34.pyo
5.779 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
policy.cpython-34.pyc
8.879 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
policy.cpython-34.pyo
8.879 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
quoprimime.cpython-34.pyc
7.937 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
quoprimime.cpython-34.pyo
7.937 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
utils.cpython-34.pyc
10.251 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
utils.cpython-34.pyo
10.251 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF