$94 GRAYBYTE WORDPRESS FILE MANAGER $78

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 91.108.106.254 | ADMIN IP 216.73.216.143
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/email/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/email/__pycache__//_encoded_words.cpython-37.pyc
B

� fL!�@s�dZddlZddlZddlZddlZddlmZmZddlm	Z	ddddd	d
ddgZ
e�e�d
�j
dd��Zdd�ZGdd�de�Ze�Zdeed�<dd�Zdd	�Zdd�Zdd�Zdd
�Zeed�Zdd�Zeed�Zeed�Zddd�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�9/opt/alt/python37/lib64/python3.7/email/_encoded_words.py�<lambda>A�rcCs|�dd�}t|�gfS)N�_� )�replace�_q_byte_subber)�encodedrrrrCsc@s,eZdZde�d�e�d�Zdd�ZdS)�	_QByteMaps-!*+/�asciicCs.||jkrt|�||<nd�|�||<||S)Nz={:02X})�safe�chr�format)�self�keyrrr�__missing__Ms
z_QByteMap.__missing__N)�__name__�
__module__�__qualname__rrrrr"rrrrrIsr�_� cCsd�dd�|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	\scCs�t|�d}|r ddd|�nd}y$tj||dd�|rDt��gngfStjk
r�ytj|dd�t��gfStjk
r�y"tj|ddd�t��t��gfStjk
r�|t��gfSXYnXYnXdS)N�s===rT)ZvalidateFs==)	r/�base64Z	b64decoderZInvalidBase64PaddingDefect�binascii�ErrorZInvalidBase64CharactersDefectZInvalidBase64LengthDefect)rZpad_errZmissing_paddingrrrrds cCst�|��d�S)Nr)r2Z	b64encoder)r.rrrr�scCs&tt|�d�\}}|d|r dndS)N�r1r)�divmodr/)r.Zgroups_of_3Zleftoverrrrr
�s)�q�bc	
Cs�|�d�\}}}}}|�d�\}}}|��}|�dd�}t||�\}}y|�|�}Wnvtk
r�|�t�	d�
|���|�|d�}YnBtk
r�|�dd�}|��dkr�|�t�d�
|���YnX||||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�UnicodeError�appendrZUndecodableBytesDefectr�LookupErrorZCharsetError)	Zewr&�charsetZcteZ
cte_string�langr.Zdefects�stringrrrr�s"
�utf-8r(cCs||dkr|�dd�}n
|�|�}|dkrTtd|�}td|�}||dkrPdnd}t||�}|rld|}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.

    zunknown-8bitrr;Nr7r8�r:z=?{}{}?{}?{}?=)r�_cte_encode_length�
_cte_encodersr)rErC�encodingrDr.ZqlenZblenrrrrr�s
)rFNr()�__doc__�rer2r3�	functoolsrErrZemailr�__all__�partial�compile�subrr�dictrr)�ordrr	rrr
r?rrIrHrrrrr�<module>sB$
&+

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
28 Feb 2025 12.45 AM
root / 996
0755
__init__.cpython-37.opt-1.pyc
1.648 KB
17 Apr 2024 5.36 PM
root / 996
0644
__init__.cpython-37.opt-2.pyc
1.054 KB
17 Apr 2024 5.35 PM
root / 996
0644
__init__.cpython-37.pyc
1.648 KB
17 Apr 2024 5.36 PM
root / 996
0644
_encoded_words.cpython-37.opt-1.pyc
5.474 KB
17 Apr 2024 5.36 PM
root / 996
0644
_encoded_words.cpython-37.opt-2.pyc
3.632 KB
17 Apr 2024 5.35 PM
root / 996
0644
_encoded_words.cpython-37.pyc
5.474 KB
17 Apr 2024 5.36 PM
root / 996
0644
_header_value_parser.cpython-37.opt-1.pyc
75.119 KB
17 Apr 2024 5.36 PM
root / 996
0644
_header_value_parser.cpython-37.opt-2.pyc
58.956 KB
17 Apr 2024 5.35 PM
root / 996
0644
_header_value_parser.cpython-37.pyc
75.166 KB
17 Apr 2024 5.36 PM
root / 996
0644
_parseaddr.cpython-37.opt-1.pyc
12.125 KB
17 Apr 2024 5.36 PM
root / 996
0644
_parseaddr.cpython-37.opt-2.pyc
9.234 KB
17 Apr 2024 5.35 PM
root / 996
0644
_parseaddr.cpython-37.pyc
12.125 KB
17 Apr 2024 5.36 PM
root / 996
0644
_policybase.cpython-37.opt-1.pyc
14.499 KB
17 Apr 2024 5.36 PM
root / 996
0644
_policybase.cpython-37.opt-2.pyc
5.859 KB
17 Apr 2024 5.35 PM
root / 996
0644
_policybase.cpython-37.pyc
14.499 KB
17 Apr 2024 5.36 PM
root / 996
0644
base64mime.cpython-37.opt-1.pyc
3.156 KB
17 Apr 2024 5.36 PM
root / 996
0644
base64mime.cpython-37.opt-2.pyc
1.421 KB
17 Apr 2024 5.35 PM
root / 996
0644
base64mime.cpython-37.pyc
3.156 KB
17 Apr 2024 5.36 PM
root / 996
0644
charset.cpython-37.opt-1.pyc
11.22 KB
17 Apr 2024 5.36 PM
root / 996
0644
charset.cpython-37.opt-2.pyc
5.033 KB
17 Apr 2024 5.35 PM
root / 996
0644
charset.cpython-37.pyc
11.256 KB
17 Apr 2024 5.36 PM
root / 996
0644
contentmanager.cpython-37.opt-1.pyc
7.121 KB
17 Apr 2024 5.36 PM
root / 996
0644
contentmanager.cpython-37.opt-2.pyc
7.121 KB
17 Apr 2024 5.35 PM
root / 996
0644
contentmanager.cpython-37.pyc
7.121 KB
17 Apr 2024 5.36 PM
root / 996
0644
encoders.cpython-37.opt-1.pyc
1.622 KB
17 Apr 2024 5.36 PM
root / 996
0644
encoders.cpython-37.opt-2.pyc
1.279 KB
17 Apr 2024 5.35 PM
root / 996
0644
encoders.cpython-37.pyc
1.622 KB
17 Apr 2024 5.36 PM
root / 996
0644
errors.cpython-37.opt-1.pyc
6.043 KB
17 Apr 2024 5.36 PM
root / 996
0644
errors.cpython-37.opt-2.pyc
4.537 KB
17 Apr 2024 5.35 PM
root / 996
0644
errors.cpython-37.pyc
6.043 KB
17 Apr 2024 5.36 PM
root / 996
0644
feedparser.cpython-37.opt-1.pyc
10.229 KB
17 Apr 2024 5.36 PM
root / 996
0644
feedparser.cpython-37.opt-2.pyc
8.603 KB
17 Apr 2024 5.35 PM
root / 996
0644
feedparser.cpython-37.pyc
10.377 KB
17 Apr 2024 5.36 PM
root / 996
0644
generator.cpython-37.opt-1.pyc
12.204 KB
17 Apr 2024 5.36 PM
root / 996
0644
generator.cpython-37.opt-2.pyc
8.595 KB
17 Apr 2024 5.35 PM
root / 996
0644
generator.cpython-37.pyc
12.204 KB
17 Apr 2024 5.36 PM
root / 996
0644
header.cpython-37.opt-1.pyc
15.999 KB
17 Apr 2024 5.36 PM
root / 996
0644
header.cpython-37.opt-2.pyc
10.507 KB
17 Apr 2024 5.35 PM
root / 996
0644
header.cpython-37.pyc
15.999 KB
17 Apr 2024 5.36 PM
root / 996
0644
headerregistry.cpython-37.opt-1.pyc
20.883 KB
17 Apr 2024 5.36 PM
root / 996
0644
headerregistry.cpython-37.opt-2.pyc
15.247 KB
17 Apr 2024 5.35 PM
root / 996
0644
headerregistry.cpython-37.pyc
20.936 KB
17 Apr 2024 5.36 PM
root / 996
0644
iterators.cpython-37.opt-1.pyc
1.884 KB
17 Apr 2024 5.36 PM
root / 996
0644
iterators.cpython-37.opt-2.pyc
1.276 KB
17 Apr 2024 5.35 PM
root / 996
0644
iterators.cpython-37.pyc
1.884 KB
17 Apr 2024 5.36 PM
root / 996
0644
message.cpython-37.opt-1.pyc
37.101 KB
17 Apr 2024 5.36 PM
root / 996
0644
message.cpython-37.opt-2.pyc
20.897 KB
17 Apr 2024 5.35 PM
root / 996
0644
message.cpython-37.pyc
37.101 KB
17 Apr 2024 5.36 PM
root / 996
0644
parser.cpython-37.opt-1.pyc
5.609 KB
17 Apr 2024 5.36 PM
root / 996
0644
parser.cpython-37.opt-2.pyc
2.66 KB
17 Apr 2024 5.35 PM
root / 996
0644
parser.cpython-37.pyc
5.609 KB
17 Apr 2024 5.36 PM
root / 996
0644
policy.cpython-37.opt-1.pyc
9.426 KB
17 Apr 2024 5.36 PM
root / 996
0644
policy.cpython-37.opt-2.pyc
3.354 KB
17 Apr 2024 5.35 PM
root / 996
0644
policy.cpython-37.pyc
9.426 KB
17 Apr 2024 5.36 PM
root / 996
0644
quoprimime.cpython-37.opt-1.pyc
7.481 KB
17 Apr 2024 5.36 PM
root / 996
0644
quoprimime.cpython-37.opt-2.pyc
4.086 KB
17 Apr 2024 5.35 PM
root / 996
0644
quoprimime.cpython-37.pyc
7.481 KB
17 Apr 2024 5.36 PM
root / 996
0644
utils.cpython-37.opt-1.pyc
9.242 KB
17 Apr 2024 5.36 PM
root / 996
0644
utils.cpython-37.opt-2.pyc
5.991 KB
17 Apr 2024 5.35 PM
root / 996
0644
utils.cpython-37.pyc
9.242 KB
17 Apr 2024 5.36 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF