SILENT KILLERPanel

Current Path: > > opt > alt > python35 > lib64 > > python3.5 > email > __pycache__


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python35/lib64//python3.5/email/__pycache__

NameTypeSizeLast ModifiedActions
__init__.cpython-35.opt-1.pyc File 1761 bytes May 31 2024 13:51:46.
__init__.cpython-35.opt-2.pyc File 1144 bytes May 31 2024 13:51:29.
__init__.cpython-35.pyc File 1761 bytes May 31 2024 13:51:51.
_encoded_words.cpython-35.opt-1.pyc File 6046 bytes May 31 2024 13:51:47.
_encoded_words.cpython-35.opt-2.pyc File 4152 bytes May 31 2024 13:51:29.
_encoded_words.cpython-35.pyc File 6046 bytes May 31 2024 13:51:51.
_header_value_parser.cpython-35.opt-1.pyc File 87306 bytes May 31 2024 13:51:46.
_header_value_parser.cpython-35.opt-2.pyc File 71783 bytes May 31 2024 13:51:29.
_header_value_parser.cpython-35.pyc File 87364 bytes May 31 2024 13:51:51.
_parseaddr.cpython-35.opt-1.pyc File 13803 bytes May 31 2024 13:51:46.
_parseaddr.cpython-35.opt-2.pyc File 10831 bytes May 31 2024 13:51:29.
_parseaddr.cpython-35.pyc File 13803 bytes May 31 2024 13:51:51.
_policybase.cpython-35.opt-1.pyc File 15190 bytes May 31 2024 13:51:46.
_policybase.cpython-35.opt-2.pyc File 6478 bytes May 31 2024 13:51:29.
_policybase.cpython-35.pyc File 15190 bytes May 31 2024 13:51:51.
base64mime.cpython-35.opt-1.pyc File 3369 bytes May 31 2024 13:51:46.
base64mime.cpython-35.opt-2.pyc File 1584 bytes May 31 2024 13:51:29.
base64mime.cpython-35.pyc File 3369 bytes May 31 2024 13:51:51.
charset.cpython-35.opt-1.pyc File 12012 bytes May 31 2024 13:51:46.
charset.cpython-35.opt-2.pyc File 5669 bytes May 31 2024 13:51:29.
charset.cpython-35.pyc File 12056 bytes May 31 2024 13:51:51.
contentmanager.cpython-35.opt-1.pyc File 8098 bytes May 31 2024 13:51:47.
contentmanager.cpython-35.opt-2.pyc File 8092 bytes May 31 2024 13:51:29.
contentmanager.cpython-35.pyc File 8098 bytes May 31 2024 13:51:51.
encoders.cpython-35.opt-1.pyc File 1744 bytes May 31 2024 13:51:46.
encoders.cpython-35.opt-2.pyc File 1385 bytes May 31 2024 13:51:29.
encoders.cpython-35.pyc File 1744 bytes May 31 2024 13:51:51.
errors.cpython-35.opt-1.pyc File 6275 bytes May 31 2024 13:51:46.
errors.cpython-35.opt-2.pyc File 4740 bytes May 31 2024 13:51:29.
errors.cpython-35.pyc File 6275 bytes May 31 2024 13:51:51.
feedparser.cpython-35.opt-1.pyc File 11448 bytes May 31 2024 13:51:46.
feedparser.cpython-35.opt-2.pyc File 9769 bytes May 31 2024 13:51:29.
feedparser.cpython-35.pyc File 11620 bytes May 31 2024 13:51:51.
generator.cpython-35.opt-1.pyc File 13493 bytes May 31 2024 13:51:46.
generator.cpython-35.opt-2.pyc File 9783 bytes May 31 2024 13:51:29.
generator.cpython-35.pyc File 13493 bytes May 31 2024 13:51:51.
header.cpython-35.opt-1.pyc File 17683 bytes May 31 2024 13:51:46.
header.cpython-35.opt-2.pyc File 12051 bytes May 31 2024 13:51:29.
header.cpython-35.pyc File 17683 bytes May 31 2024 13:51:51.
headerregistry.cpython-35.opt-1.pyc File 22556 bytes May 31 2024 13:51:47.
headerregistry.cpython-35.opt-2.pyc File 16771 bytes May 31 2024 13:51:29.
headerregistry.cpython-35.pyc File 22617 bytes May 31 2024 13:51:51.
iterators.cpython-35.opt-1.pyc File 2028 bytes May 31 2024 13:51:46.
iterators.cpython-35.opt-2.pyc File 1398 bytes May 31 2024 13:51:29.
iterators.cpython-35.pyc File 2028 bytes May 31 2024 13:51:51.
message.cpython-35.opt-1.pyc File 39240 bytes May 31 2024 13:51:47.
message.cpython-35.opt-2.pyc File 23182 bytes May 31 2024 13:51:29.
message.cpython-35.pyc File 39240 bytes May 31 2024 13:51:51.
parser.cpython-35.opt-1.pyc File 5910 bytes May 31 2024 13:51:46.
parser.cpython-35.opt-2.pyc File 2882 bytes May 31 2024 13:51:29.
parser.cpython-35.pyc File 5910 bytes May 31 2024 13:51:51.
policy.cpython-35.opt-1.pyc File 9852 bytes May 31 2024 13:51:46.
policy.cpython-35.opt-2.pyc File 3625 bytes May 31 2024 13:51:29.
policy.cpython-35.pyc File 9852 bytes May 31 2024 13:51:51.
quoprimime.cpython-35.opt-1.pyc File 8109 bytes May 31 2024 13:51:46.
quoprimime.cpython-35.opt-2.pyc File 4624 bytes May 31 2024 13:51:29.
quoprimime.cpython-35.pyc File 8109 bytes May 31 2024 13:51:51.
utils.cpython-35.opt-1.pyc File 10458 bytes May 31 2024 13:51:46.
utils.cpython-35.opt-2.pyc File 7320 bytes May 31 2024 13:51:29.
utils.cpython-35.pyc File 10458 bytes May 31 2024 13:51:51.

Reading File: //opt/alt/python35/lib64//python3.5/email/__pycache__/policy.cpython-35.opt-1.pyc



��Yf;(�@sdZddlZddlmZmZmZmZddlmZddl	m
Z
ddlmZddd	d
ddd
dgZ
ejd�ZeGdd
�d
e��Ze�Ze`ejdd�Zejdd�Zejdddd�Zejdd�ZdS)zcThis will be the home for the policy that hooks in the new
code that adds all the email6 features.
�N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_managerrrr�EmailPolicy�default�strict�SMTP�HTTPz\n|\rcs�eZdZdZdZdZe�ZeZ	�fdd�Z
dd�Zdd	�Zd
d�Z
dd
�Zdd�Zdd�Zddd�Z�S)r	aQ+
    PROVISIONAL

    The API extensions enabled by this policy are currently provisional.
    Refer to the documentation for details.

    This policy adds new header parsing and folding algorithms.  Instead of
    simple strings, headers are custom objects with custom attributes
    depending on the type of the field.  The folding algorithm fully
    implements RFCs 2047 and 5322.

    In addition to the settable attributes listed above that apply to
    all Policies, this policy adds the following additional attributes:

    utf8                -- if False (the default) message headers will be
                           serialized as ASCII, using encoded words to encode
                           any non-ASCII characters in the source strings.  If
                           True, the message headers will be serialized using
                           utf8 and will not contain encoded words (see RFC
                           6532 for more on this serialization format).

    refold_source       -- if the value for a header in the Message object
                           came from the parsing of some source, this attribute
                           indicates whether or not a generator should refold
                           that value when transforming the message back into
                           stream form.  The possible values are:

                           none  -- all source values use original folding
                           long  -- source values that have any line that is
                                    longer than max_line_length will be
                                    refolded
                           all  -- all values are refolded.

                           The default is 'long'.

    header_factory      -- a callable that takes two arguments, 'name' and
                           'value', where 'name' is a header field name and
                           'value' is an unfolded header field value, and
                           returns a string-like object that represents that
                           header.  A default header_factory is provided that
                           understands some of the RFC5322 header field types.
                           (Currently address fields and date fields have
                           special treatment, while all other fields are
                           treated as unstructured.  This list will be
                           completed before the extension is marked stable.)

    content_manager     -- an object with at least two methods: get_content
                           and set_content.  When the get_content or
                           set_content method of a Message object is called,
                           it calls the corresponding method of this object,
                           passing it the message object as its first argument,
                           and any arguments or keywords that were passed to
                           it as additional arguments.  The default
                           content_manager is
                           :data:`~email.contentmanager.raw_data_manager`.

    F�longcs6d|kr"tj|dt��t�j|�dS)N�header_factory)�object�__setattr__r�super�__init__)�self�kw)�	__class__��1/opt/alt/python35/lib64/python3.5/email/policy.pyrZszEmailPolicy.__init__cCs|j|jS)z�+
        The implementation for this class returns the max_count attribute from
        the specialized header class that would be used to construct a header
        of type 'name'.
        )rZ	max_count)r�namerrr�header_max_countaszEmailPolicy.header_max_countcCsU|djdd�\}}|jd�dj|dd��}||jd�fS)ac+
        The name is parsed as everything up to the ':' and returned unmodified.
        The value is determined by stripping leading whitespace off the
        remainder of the first line, joining all subsequent lines together, and
        stripping any trailing carriage return or linefeed characters.  (This
        is the same as Compat32).

        r�:�z 	�Nz
)�split�lstrip�join�rstrip)rZsourcelinesr�valuerrr�header_source_parsess	&zEmailPolicy.header_source_parsecCs}t|d�r4|jj�|j�kr4||fSt|t�rgt|j��dkrgtd��||j||�fS)a�+
        The name is returned unchanged.  If the input value has a 'name'
        attribute and it matches the name ignoring case, the value is returned
        unchanged.  Otherwise the name and value are passed to header_factory
        method, and the resulting custom header object is returned as the
        value.  In this case a ValueError is raised if the input value contains
        CR or LF characters.

        rrzDHeader values may not contain linefeed or carriage return characters)	�hasattrr�lower�
isinstance�str�len�
splitlines�
ValueErrorr)rrr"rrr�header_store_parse�s

*
'zEmailPolicy.header_store_parsecCs;t|d�r|Sdjtj|��}|j||�S)ai+
        If the value has a 'name' attribute, it is returned to unmodified.
        Otherwise the name and the value with any linesep characters removed
        are passed to the header_factory method, and the resulting custom
        header object is returned.  Any surrogateescaped bytes get turned
        into the unicode unknown-character glyph.

        rr)r$r �linesep_splitterrr)rrr"rrr�header_fetch_parse�s	zEmailPolicy.header_fetch_parsecCs|j||dd�S)a+
        Header folding is controlled by the refold_source policy setting.  A
        value is considered to be a 'source value' if and only if it does not
        have a 'name' attribute (having a 'name' attribute means it is a header
        object of some sort).  If a source value needs to be refolded according
        to the policy, it is converted into a custom header object by passing
        the name and the value with any linesep characters removed to the
        header_factory method.  Folding of a custom header object is done by
        calling its fold method with the current policy.

        Source values are split into lines using splitlines.  If the value is
        not to be refolded, the lines are rejoined using the linesep from the
        policy and returned.  The exception is lines containing non-ascii
        binary data.  In that case the value is refolded regardless of the
        refold_source setting, which causes the binary data to be CTE encoded
        using the unknown-8bit charset.

        �
refold_binaryT)�_fold)rrr"rrr�fold�szEmailPolicy.foldcCsF|j||d|jdk�}|jr0dnd}|j|d�S)a+
        The same as fold if cte_type is 7bit, except that the returned value is
        bytes.

        If cte_type is 8bit, non-ASCII binary data is converted back into
        bytes.  Headers with binary data are not refolded, regardless of the
        refold_header setting, since there is no way to know whether the binary
        data consists of single byte characters or multibyte characters.

        If utf8 is true, headers are encoded to utf8, otherwise to ascii with
        non-ASCII unicode rendered as encoded words.

        r.Z7bit�utf8�ascii�surrogateescape)r/Zcte_typer1�encode)rrr"Zfolded�charsetrrr�fold_binary�s!zEmailPolicy.fold_binarycst|d�r|jd|�S|jr1|jn	td��|j�}|jdkp�|jdko�|r�t|d�t|�d�kp�t�fdd	�|d
d�D��}|s�|r�t|�r�|j	|dj
|��jd|�S|d|jj
|�|jS)
NrZpolicy�inf�allrr�c3s!|]}t|��kVqdS)N)r()�.0�x)�maxlenrr�	<genexpr>�sz$EmailPolicy._fold.<locals>.<genexpr>rrz: )r$r0�max_line_length�floatr)�
refold_sourcer(�anyrrr �linesep)rrr"r.�linesZrefoldr)r<rr/�s*)%zEmailPolicy._fold)�__name__�
__module__�__qualname__�__doc__r1r@rrrZcontent_managerrrr#r+r-r0r6r/rr)rrr	s;	
Zraise_on_defectTrBz
r>r1)rG�reZemail._policybaserrrrZemail.utilsrZemail.headerregistryrZemail.contentmanagerr�__all__�compiler,r	r
rZclonerrr
ZSMTPUTF8rrrr�<module>s,"	�	

SILENT KILLER Tool