[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.14.141.100: ~ $
U

��,aL!�@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/python38/lib64/python3.8/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|�VqdSr))�lenr*r+rrrr.]szlen_q.<locals>.<genexpr>)�sumr0rrrr	\scCs�t|�d}|r ddd|�nd}z&tj||dd�|rDt��gngfWStjk
�r�ztj|dd�t��gfWYStjk
r�z,tj|ddd�t��t��gfWYYStjk
r�|t��gfYYYSXYnXYnXdS)N�s===rT)ZvalidateFs==)	r2�base64Z	b64decoderZInvalidBase64PaddingDefect�binascii�ErrorZInvalidBase64CharactersDefectZInvalidBase64LengthDefect)rZpad_errZmissing_paddingrrrrds(��
��cCst�|��d�S)Nr)r5Z	b64encoderr0rrrr�scCs&tt|�d�\}}|d|r dndS)N�r4r)�divmodr2)r1Zgroups_of_3Zleftoverrrrr
�s)�q�bc	
Cs�|�d�\}}}}}|�d�\}}}|��}|�dd�}t||�\}}z|�|�}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 {} charset�unknown-8bitz<Unknown charset {} in encoded word; decoded as unknown bytes)
�split�	partition�lowerr�
_cte_decodersr�UnicodeError�appendrZUndecodableBytesDefectr�LookupErrorZCharsetError)	Zewr&�charsetZcteZ
cte_string�langr1Zdefects�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.

    r?rr>Nr:r;�r=z=?{}{}?{}?{}?=)r�_cte_encode_length�
_cte_encodersr)rIrG�encodingrHr1ZqlenZblenrrrrr�s
)rJNr()�__doc__�rer5r6�	functoolsrIrrZemailr�__all__�partial�compile�subrr�dictrr*�ordrr	rrr
rCrrMrLrrrrr�<module>sL)��&�+��

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 1.67 KB 0644
__init__.cpython-38.opt-2.pyc File 1.06 KB 0644
__init__.cpython-38.pyc File 1.67 KB 0644
_encoded_words.cpython-38.opt-1.pyc File 5.57 KB 0644
_encoded_words.cpython-38.opt-2.pyc File 3.73 KB 0644
_encoded_words.cpython-38.pyc File 5.57 KB 0644
_header_value_parser.cpython-38.opt-1.pyc File 78.03 KB 0644
_header_value_parser.cpython-38.opt-2.pyc File 61.55 KB 0644
_header_value_parser.cpython-38.pyc File 78.07 KB 0644
_parseaddr.cpython-38.opt-1.pyc File 12.19 KB 0644
_parseaddr.cpython-38.opt-2.pyc File 9.3 KB 0644
_parseaddr.cpython-38.pyc File 12.19 KB 0644
_policybase.cpython-38.opt-1.pyc File 14.48 KB 0644
_policybase.cpython-38.opt-2.pyc File 5.86 KB 0644
_policybase.cpython-38.pyc File 14.48 KB 0644
base64mime.cpython-38.opt-1.pyc File 3.17 KB 0644
base64mime.cpython-38.opt-2.pyc File 1.44 KB 0644
base64mime.cpython-38.pyc File 3.17 KB 0644
charset.cpython-38.opt-1.pyc File 11.17 KB 0644
charset.cpython-38.opt-2.pyc File 4.99 KB 0644
charset.cpython-38.pyc File 11.21 KB 0644
contentmanager.cpython-38.opt-1.pyc File 7.2 KB 0644
contentmanager.cpython-38.opt-2.pyc File 7.2 KB 0644
contentmanager.cpython-38.pyc File 7.2 KB 0644
encoders.cpython-38.opt-1.pyc File 1.59 KB 0644
encoders.cpython-38.opt-2.pyc File 1.25 KB 0644
encoders.cpython-38.pyc File 1.59 KB 0644
errors.cpython-38.opt-1.pyc File 5.78 KB 0644
errors.cpython-38.opt-2.pyc File 4.38 KB 0644
errors.cpython-38.pyc File 5.78 KB 0644
feedparser.cpython-38.opt-1.pyc File 10.26 KB 0644
feedparser.cpython-38.opt-2.pyc File 8.63 KB 0644
feedparser.cpython-38.pyc File 10.41 KB 0644
generator.cpython-38.opt-1.pyc File 12.25 KB 0644
generator.cpython-38.opt-2.pyc File 8.63 KB 0644
generator.cpython-38.pyc File 12.25 KB 0644
header.cpython-38.opt-1.pyc File 16.07 KB 0644
header.cpython-38.opt-2.pyc File 10.58 KB 0644
header.cpython-38.pyc File 16.07 KB 0644
headerregistry.cpython-38.opt-1.pyc File 21.49 KB 0644
headerregistry.cpython-38.opt-2.pyc File 15.86 KB 0644
headerregistry.cpython-38.pyc File 21.54 KB 0644
iterators.cpython-38.opt-1.pyc File 1.89 KB 0644
iterators.cpython-38.opt-2.pyc File 1.28 KB 0644
iterators.cpython-38.pyc File 1.89 KB 0644
message.cpython-38.opt-1.pyc File 37 KB 0644
message.cpython-38.opt-2.pyc File 20.83 KB 0644
message.cpython-38.pyc File 37 KB 0644
parser.cpython-38.opt-1.pyc File 5.6 KB 0644
parser.cpython-38.opt-2.pyc File 2.66 KB 0644
parser.cpython-38.pyc File 5.6 KB 0644
policy.cpython-38.opt-1.pyc File 9.45 KB 0644
policy.cpython-38.opt-2.pyc File 3.38 KB 0644
policy.cpython-38.pyc File 9.45 KB 0644
quoprimime.cpython-38.opt-1.pyc File 7.51 KB 0644
quoprimime.cpython-38.opt-2.pyc File 4.12 KB 0644
quoprimime.cpython-38.pyc File 7.51 KB 0644
utils.cpython-38.opt-1.pyc File 9.33 KB 0644
utils.cpython-38.opt-2.pyc File 6.09 KB 0644
utils.cpython-38.pyc File 9.33 KB 0644