403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/email/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/email/__pycache__/generator.cpython-315.opt-1.pyc
R
>lqj�Uc���Qs,QNs]PHs]PHs]PHs]PHs]QHGs]QH G	s	G
s
]QH,Gs]QH4GsQsQ	s\O"Q
2s\O"Q\O&2s\O"Q2s\O"Q
2sQQ2sQQ\2sQsQQ\2s\\\O:]*
22sQ\*s\O@s P!)z:Classes to generate plain text from a message object tree.�	Generator�DecodedGenerator�BytesGenerator)�deepcopy)�StringIO�BytesIO)�_has_surrogates)�HeaderWriteError�_�
z
\r\n|\r|\nz^From z\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]s\r\n[^ \t]|\r[^ \n\t]|\n[^ \t]c�`�\sQs]snQsQQP-QkksQsQQksQsQs	Qs
Q	sQ
sQs
QsQ
s\sQsQsQsQs\QQk2s\Q2sQsUsP!)rz~Generates output from a Message object tree.

This basic generator writes the message to the given file object as plain
text.
�policyc�d�UeUeP	LUOoVmV mV0mV@mP!)a�Create the generator for message flattening.

outfp is the output file-like object for writing the message to.  It
must have a write() method.

Optional mangle_from_ is a flag that, when True (the default if policy
is not set), escapes From_ lines in the body of the message by putting
a '>' in front of them.

Optional maxheaderlen specifies the longest length for a non-continued
header.  When a header line is longer (in characters, with tabs
expanded to 8 spaces) than maxheaderlen, the header will split as
defined in the Header class.  Set maxheaderlen to zero to disable
header wrapping.  The default is 78, as recommended (but not required)
by RFC 5322 section 2.1.1.

The policy keyword specifies a policy object that controls a number of
aspects of the generator's operation.  If no policy is specified,
the policy associated with the Message object passed to the
flatten method is used.

)�mangle_from_�_fp�
_mangle_from_�maxheaderlenr)�self�outfprrrs&&&&$�$C:\Python315\\Lib\email\generator.py�__init__�Generator.__init__&s1��2��#)�>�4�v�7J�7J�L���)��(����c�>�UOOU2P!�N)r�write�r�ss&&rr�Generator.writeFs�������q�rc��UOe
UOLUOoUdUOUQ5oUOdUOUOQ5oUOUmUOUO2UmPUmUOUO2UmUOoUOoV@mVAmU%cjUO2oU%f1Q[O[O22*oUOVpO*2UOU2VPmVamP!XPmXamh9h)a�Print the message object tree rooted at msg to the output file
specified when the Generator instance was created.

unixfrom is a flag that forces the printing of a Unix From_ delimiter
before the first object in the message tree.  If the original message
has no From_ delimiter, a 'standard' one is crafted.  By default, this
is False to inhibit the printing of any From_ delimiter.

Note that for subobjects, no From_ line is printed.

linesep specifies the characters used to indicate a new line in
the output.  The default value is determined by the policy specified
when the Generator instance was created or, if none was specified,
from the policy associated with the msg.

)�linesep��max_line_lengthzFrom nobody )r�clonerr�_NL�_encode�_encoded_NL�_EMPTY�_encoded_EMPTY�get_unixfrom�time�ctimer�_write)r�msg�unixfromrr�old_gen_policy�old_msg_policy�ufroms&&&&    r�flatten�Generator.flattenJs��* $�{�{�2�����������\�\�'�\�2�F����(��\�\�$�2C�2C�\�D�F��>�>����<�<����1������"�l�l�4�;�;�7���
��������	(� �K��J���(�(�*���*�T�Z�Z��	�	��-D�D�E��
�
�5�8�8�+�,��K�K���(�K�'�J��)�K�'�J�s�E5�-E5�A"E5�5Fc�V�UOUUOPUOQ5!)z1Clone this generator with the exact same options.�r)�	__class__rr)r�fps&&rr"�Generator.clone{s-���~�~�b�"�0�0�"�%)�[�[��2�	2rc��[2!r)r�rs&r�_new_buffer�Generator._new_buffer�s
���z�rc��U!r�rs&&rr$�Generator._encode�s���rc�
�U%fP![OU2oUPPFD/oUOU2UOUO2J1	UP*%cUOUP*2P!P!r)�NLCRE�splitrr#)r�lines�lines&& r�_write_lines�Generator._write_lines�sb�������E�"���#�2�J�D��J�J�t���J�J�t�x�x� ����9�9��J�J�u�R�y�!�rc�L�UOoPUmUO29UmoUOU2V mUOoU;U%c^[	U2oUOQ2eU]*UQ$LUO
QU]*2UO
QU]*2[UQP2oUeUOU2LUU2UOOUO22P!X mSOoS;h9h)N�content-transfer-encoding�Content-Transfer-Encoding�content-type�_write_headers)r�
_munge_cter:�	_dispatchr�get�replace_header�getattrrJr�getvalue)rr,�oldfp�sfp�	munge_cte�meths&&    rr+�Generator._write�s�������	 �"�D�O�!�-�-�/�/�D�H�s��N�N�3���H����I�����3�-�C��w�w�2�3�;�3<�Q�<��/�0��"�"�#>�	�!��M����~�y��|�<��s�,�d�3���<�����$���J������s�|�|�~�&��'�H����I���s�/D
�
D#c�@�UO2oUO2o[OV#12O	QQ2o[UQU*P2oUe7UO	QQ2o[UQU*P2oUe
UOoUU2P!)�-r	�_handle_)�get_content_maintype�get_content_subtype�
UNDERSCORE�join�replacerO�
_writeBody)rr,�main�sub�specificrT�generics&&     rrL�Generator._dispatch�s���
�'�'�)���%�%�'���?�?�D�;�/�7�7��S�A���t�Z�(�2�D�9���<��l�l�3��,�G��4��g�!5�t�<�D��|������S�	rc���UO2FD�vq#UOOV#2oUOO%czUOOoUOU2%f[
QU8QU802g[OUOU22%c[
QU802gUOU2J�	UOUO2P!�z folded header does not end with z: z folded header contains newline: )�	raw_itemsr�fold�verify_generated_headersr�endswithr�NEWLINE_WITHOUT_FWSP�search�removesuffixrr#�rr,�h�v�foldedrs&&    rrJ�Generator._write_headers�s����M�M�O�D�A��[�[�%�%�a�+�F��{�{�3�3�3��+�+�-�-�����w�/�/�*�:�7�+�R��z�R�T�T�'�.�.�v�/B�/B�7�/K�L�L�*�:�6�*�E�G�G��J�J�v��$�	
�
�
�4�8�8�rc�
�UO2oUeP![U[2%f[Q[	U2*2g[UO2%cgUOQ2oUdR[U2oUQUOUOU2UO2oUQ*UQ*1Um
UO%c[OQU2oUOU2P!)Nzstring payload expected: %s�charsetrGrI�>From )�get_payload�
isinstance�str�	TypeError�typer�_payload�	get_paramr�set_payloadrKr�fcrer`rD)rr,�payloadrss&&  r�_handle_text�Generator._handle_text�s����/�/�#���?���'�3�'�'��9�D��M�I�J�J��3�<�<�(�(��m�m�I�.�G��"��s�m���3�4�������g�6��/�/�+��#&�'B�#C�#&�~�#6�#8��������h�h�x��1�G����'�"rc���,oUO2oUe,oLB[U[2%cUOU2P![U[2%fU,oSFDaoUO2oUO
U2oUOUP
UOQ5UOUO22Jc	UO2oU%f>UOOU2oUOU2oUOU2UO dlUO"%c"[$O'QUO 2o	LUO o	UO)U	2UOUO2UOQU*UO*2U%c+UO*OUO-]22SFDXo
UOUOQ*U*UO*2UO*OU
2JZ	UOUOQ*U*Q*UO*2UO.dSUO"%c"[$O'QUO.2oLUO.oUO)U2P!P!)N�r-rrtz--)rurvrwr�listr:r"r1r#�appendrP�get_boundaryr%r\�_make_boundary�set_boundary�preamblerr}r`rDr�pop�epilogue)rr,�msgtexts�subparts�partr�g�boundary�alltextr��	body_partr�s&&          r�_handle_multipart�Generator._handle_multipart
s�����?�?�$�����H�
��#�
&�
&��J�J�x� ���H�d�+�+� �z�H��D�� � �"�A��
�
�1�
�A�
�I�I�d�U�D�H�H�I�=��O�O�A�J�J�L�)�	��#�#�%����&�&�+�+�H�5�G��*�*�7�3�H����X�&��<�<�#��!�!�!��8�8�H�c�l�l�;���<�<�����h�'��J�J�t�x�x� ��
�
�4�(�?�T�X�X�-�.���H�H�N�N�8�<�<��?�+�"�I��J�J�t�x�x�$���1�D�H�H�<�=��H�H�N�N�9�%�	"�	
�
�
�4�8�8�d�?�X�-��4�t�x�x�?�@��<�<�#��!�!�!��8�8�H�c�l�l�;���<�<�����h�'�$rc��UOoUO]Q5UmUOU2V mP!X mh9h)�r )rr"r�)rr,�ps&& r�_handle_multipart_signed�"Generator._handle_multipart_signedGs=��
�K�K���g�g�a�g�0���	��"�"�3�'��K��!�K�s	�?�Ac	�8�,oUO2FD�oUO2oUOU2oUOUP
UOQ5UO2oUO
UO2oU%cHUP*UO6Xc0UOUOOUPP22J�UOU2J�	UOOUOOU22P!)Fr�)
rur:r"r1r#rPrAr%r'r�r\rr)rr,�blocksr�rr��textrBs&&      r�_handle_message_delivery_status�)Generator._handle_message_delivery_statusRs������O�O�%�D�� � �"�A��
�
�1�
�A�
�I�I�d�U�D�H�H�I�=��:�:�<�D��J�J�t�/�/�0�E���r��d�&9�&9�9��
�
�d�.�.�3�3�E�#�2�J�?�@��
�
�d�#�&�	
�����t�'�'�,�,�V�4�5rc�b�UO2oUOU2oUOo[U[2%c?UOUO
]2P
UOQ5UO2oLUOU2oUOOU2P!)r�r�)r:r"rzrvr�r1rur#rPr$rr)rr,rr�r~s&&   r�_handle_message�Generator._handle_messagegs}��������J�J�q�M���,�,���g�t�$�$�
�I�I�c�o�o�a�(�5�$�(�(�I�K��j�j�l�G��l�l�7�+�G������w�rc��[O[O2oQ[U**Q*oUeU!So]oUOQ[OU2*Q*[O2oUOU2%fU!UQ*[U2*oU]*
oJ�)�=z==z^--z(--)?
?$�.z===============)�random�	randrange�sys�maxsize�_fmt�_compile_re�re�escape�	MULTILINErkrw)�clsr��tokenr��b�counter�cres&&     rr��Generator._make_boundary�s���� � ����-������.��5���<��O�������/�/�%�"�)�)�A�,�"6��"D�b�l�l�S�C��:�:�d�#�#�����3���W��-�A��q�L�Grc�0�[OV2!r)r��compile�r�r�flagss&&&rr��Generator._compile_re�s���z�z�!�#�#r)	r&r#r'r%rrrKrr)NN)FNr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr1r"r:r$rDr+rLrJrr^r�r�r�r��classmethodr�r��__static_attributes__�__classdictcell__��
__classdict__s@rrrs���������@�/(�b2�(��	"� %'�N�(
�&#�,�J�8(�t	�6�* �2����"�$��$rc�d``�\sQsQsnQsQsQsQsQsU1Qks	\	s
\Q2sQ	s
UsU9s!)
r�a�Generates a bytes version of a Message object tree.

Functionally identical to the base Generator except that the output is
bytes and not string.  When surrogates were used in the input to encode
bytes, these are decoded back to bytes for output.  If the policy has
cte_type set to 7bit, then the message is transformed such that the
non-ASCII bytes are properly content transfer encoded, using the charset
unknown-8bit.

The outfp object must accept bytes in its write method.
c�^�UOOUOQQ22P!)�ascii�surrogateescape)rr�encoders&&rr�BytesGenerator.write�s�������q�x�x��):�;�<rc��[2!r)rr9s&rr:�BytesGenerator._new_buffer�s
���y�rc�&�UOQ2!�r�)r�rs&&rr$�BytesGenerator._encode�s���x�x�� � rc�$�UO2FD�vq#UOOV#2oUOO%c�UOOO2oUO
U2%f[QU8QU802g[OUOU22%c[QU802gUOOU2J�	UOUO2P!re)rfr�fold_binaryrhrr�rir�NEWLINE_WITHOUT_FWSP_BYTESrkrlrrr#rms&&    rrJ�BytesGenerator._write_headers�s����M�M�O�D�A��[�[�,�,�Q�2�F��{�{�3�3�3��+�+�-�-�4�4�6�����w�/�/�*�:�7�+�R��z�R�T�T�-�4�4�V�5H�5H��5Q�R�R�*�:�6�*�E�G�G��H�H�N�N�6�"�$�	
�
�
�4�8�8�rc�d:�UOeP![UO2%cpUOOQ6XfUUO%c&[
O
QUO2UmUOUO2P![[U_+U2P!)N�7bitrt)rzrr�cte_typerr}r`rD�superrr)rr,r5s&&�rr�BytesGenerator._handle_text�su����<�<����3�<�<�(�(����1E�1E�v�1M��!�!�!�#�x�x��#�,�,�?������c�l�l�+��.��3�C�8rc�P�[OUOQ2U2!r�)r�r�r�r�s&&&rr��BytesGenerator._compile_re�s���z�z�!�(�(�7�+�U�3�3rr=)r�r�r�r�r�rr:r$rJrr^r�r�r�r��
__classcell__)r5r�s@@rrr�sA����
�=��!��"
9��J��4��4�4rzD[Non-text (%(type)s) part of message omitted, filename %(filename)s]c�>`�\sQsQsnQsQQP-QkksQsQsUsP!)r��z�Generates a text representation of a message.

Like the Generator base class, except that non-text parts are substituted
with a format string representing the part.
rc�f�[OVV#UQ5Ue[UmP!V@mP!)aLike Generator.__init__() except that an additional optional
argument is allowed.

Walks through all subparts of a message.  If the subpart is of main
type 'text', then it prints the decoded payload of the subpart.

Otherwise, fmt is a format string that is used instead of the message
payload.  fmt is expanded with the following keywords (in
%(keyword)s format):

type       : Full MIME type of the non-text part
maintype   : Main MIME type of the non-text part
subtype    : Sub-MIME type of the non-text part
filename   : Filename of the non-text part
description: Description associated with the non-text part
encoding   : Content transfer encoding of the non-text part

The default value for fmt is None, meaning

[Non-text (%(type)s) part of message omitted, filename %(filename)s]
r4)rr�_FMTr�)rrrr�fmtrs&&&&&$rr�DecodedGenerator.__init__�s/��.	���4��"(�	�	*��;��D�I��Irc��UO2FD�oUO2oUQ6Xc [UOP
Q5UQ5J9UQ6XcJB[UOQUO2QUO2QUO
2QUOQ2Q	UOQ
Q2QUOQ
Q2-*UQ5J�	P!)r�)�decode)�file�	multipartry�maintype�subtype�filenamez
[no filename]�descriptionzContent-Descriptionz[no description]�encodingrHz
[no encoding])	�walkrY�printrur��get_content_typerZ�get_filenamerM)rr,r�r�s&&  rrL�DecodedGenerator._dispatch�s����H�H�J�D��0�0�2�H��6�!��d�&�&�e�&�4�4�@��[�(���d�i�i��4�#8�#8�#:��4�#<�#<�#>��4�#;�#;�#=��4�#4�#4�_�#E�!�4�8�8�,A�,>�$@��4�8�8�,G�,;�$=�	#�	�!�	"�r)r�)NNN)	r�r�r�r�r�rrLr�r�r�s@rrr�s!�����
���<"�"rz%%0%dd)rrr)!r��__all__r�r�r)r��copyr�iorr�email.utilsr�email.errorsrr[�NLr�r@r�r}rjr�rrr�r�len�reprr��_widthr�r�r=rr�<module>r�s���
A�
=��	�
��
�� �'�)�
�
�	��
�
�
�=�!��	�z�z�)�R�\�\�*���z�z�"C�D���Z�Z�(J�K��x$�x$�v84�Y�84�vN��6"�y�6"�t

�T�#�+�+�a�-�
 �	!���&����)�)�r

Youez - 2016 - github.com/yon3zu
LinuXploit