Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/quopri.cpython-311.pyc
�

�,dq���dZgd�ZdZdZdZdZ	ddlmZmZn#e	$rdZdZYnwxYwd	�Z
d
�Zdd�Zdd
�Z
dd�Zdd�Zd�Zd�Zd�Zedkre��dSdS)zHConversions to/from quoted-printable transport encoding as per RFC 1521.)�encode�decode�encodestring�decodestring�=�Ls0123456789ABCDEF��)�a2b_qp�b2a_qpNc��t|t��sJ�|dvr|S|dkr|S|tkpd|cxkodkncS)z�Decide whether a particular byte ordinal needs to be quoted.

    The 'quotetabs' flag indicates whether embedded tabs and spaces should be
    quoted.  Note that line-ending tabs and spaces are always encoded, as per
    RFC 1521.
    � 	�_� �~)�
isinstance�bytes�ESCAPE)�c�	quotetabs�headers   �-/opt/alt/python311/lib64/python3.11/quopri.py�needsquotingrse���a��������F�{�{����D�y�y��
���;�1�t�q�0�0�0�0�D�0�0�0�0�1�1rc���t|t��rt|��dksJ�t|��}ttt
|dzt
|dzf��zS)zQuote a single character.��)rr�len�ordr�HEX�rs r�quoter $sW���a����-�C��F�F�A�I�I�I�I��A���A��E�3�q�"�u�:�s�1�R�4�y�1�2�2�2�2rFc��t�=|���}t|||���}|�|��dS|dfd�}d}	|���}|s�ng}	d}
|dd�dkr|dd�}d}
|D]e}t	|f��}t|||��rt
|��}|r|dkr|	�d	���P|	�|���f|�||��t�	|	��}t|��tkrG||dtdz
�d
���|tdz
d�}t|��tk�G|}��(|�|||
���dSdS)avRead 'input', apply quoted-printable encoding, and write to 'output'.

    'input' and 'output' are binary file objects. The 'quotetabs' flag
    indicates whether embedded tabs and spaces should be quoted. Note that
    line-ending tabs and spaces are always encoded, as per RFC 1521.
    The 'header' flag indicates whether we are encoding spaces as _ as per RFC
    1522.N�rr�
c� �|rF|dd�dvr:|�|dd�t|dd���z|z��dS|dkr'|�t|��|z��dS|�||z��dS)N���r
�.)�writer )�s�output�lineEnds   rr'zencode.<locals>.write;s���
�	&��2�3�3��6�!�!��L�L��3�B�3��%��"�#�#��-�-�/�'�9�:�:�:�:�:�
�$�Y�Y��L�L��q���G�+�,�,�,�,�,��L�L��W��%�%�%�%�%rrrr%rrs=
)r*)r�readr'�readlinerrr �append�EMPTYSTRING�joinr�MAXLINESIZE)
�inputr)rr�data�odatar'�prevline�line�outline�strippedr�thislines
             rrr,s������z�z�|�|���t�y��@�@�@�����U��������&�&�&�&��H���~�~�����	����������9��������9�D��H��	"�	"�A��q�d���A��A�y�&�1�1�
��!�H�H���
"�!�t�)�)����t�$�$�$�$����q�!�!�!�!����E�(�O�O�O��#�#�G�,�,���(�m�m�k�)�)�
�E�(�>�K��M�>�*�F�;�;�;�;���A�
���/�H�	�(�m�m�k�)�)���?�B��
��h��)�)�)�)�)�)��rc��t�t|||���Sddlm}||��}|��}t||||��|���S)Nr"r	��BytesIO)r�ior;r�getvalue)r(rrr;�infp�outfps      rrrjsk��
���a�9�V�<�<�<�<��������7�1�:�:�D��G�I�I�E�
�4��	�6�*�*�*��>�>���rc	��t�<|���}t||���}|�|��dSd}	|���}|s�n�dt	|��}}|dkrH||dz
|�dkr7d}	|dz
}|dkr)||dz
|�dvr|dz
}|dkr||dz
|�dv�nd}	||kr�|||dz�}
|
dkr
|r|d	z}|dz}n�|
t
kr||
z}|dz}n�|dz|kr|	sd}	n�|dz|kr)||dz|d
z�t
kr|t
z}|d
z}n�|d
z|krnt
||dz|d
z���rQt
||d
z|dz���r4|tt||dz|dz���f��z}|dz}n
||
z}|dz}||k��|	s|�|dz��d}���|r|�|��dSdS)z�Read 'input', apply quoted-printable decoding, and write to 'output'.
    'input' and 'output' are binary file objects.
    If 'header' is true, decode underscore as space (per RFC 1522).N�rrrr	r#s 	
rr��)	r
r+r'r,rr�ishexr�unhex)r1r)rr2r3�newr5�i�n�partialrs           rrrus���
���z�z�|�|���t�F�+�+�+�����U������

�C���~�~������U��#�d�)�)�1���q�5�5�T�!�A�#�a�%�[�E�)�)��G�Q�q�S���a�%�%�D��1��Q��K�8�3�3��a�C���a�%�%�D��1��Q��K�8�3�3���G��!�e�e��Q�q��s�U��A��D�y�y�V�y��D�j��a��c�!�!��f����A�g��1�Q�3�q�q��1�����'����U��1��q���T�!�A�#�a��c�'�]�f�4�4��F�l���!��A�A��1��q���U�4��!��A�a�C��=�1�1��e�D��1��Q�q�S��M�6J�6J���E�5��a��c�!�A�#�g��#7�#7�"9�:�:�:���!��A�A��A�g��1�Q�3�q��!�e�e��	��L�L��u��%�%�%��C�7�8�����S�������rc��t�t||���Sddlm}||��}|��}t|||���|���S)NrAr	r:)r
r<r;rr=)r(rr;r>r?s     rrr�sj��
���a��'�'�'�'��������7�1�:�:�D��G�I�I�E�
�4��v�&�&�&�&��>�>���rc��t|t��sJ�d|cxkodkncpd|cxkodkncpd|cxkodkncS)zDReturn true if the byte ordinal 'c' is a hexadecimal digit in ASCII.�0�9�a�f�A�F)rrrs rrDrD�s|���a��������1����������F��� 1� 1� 1� 1�T� 1� 1� 1� 1�F�T�Q�5F�5F�5F�5F�$�5F�5F�5F�5F�Frc�d�d}|D]�}t|f��}d|cxkrdkrnntd��}n`d|cxkrdkrnntd��dz
}n=d	|cxkrd
krnntd	��dz
}nJdt|��z���|d
zt|��|z
z}��|S)z.Get the integer value of a hexadecimal number.r	rLrM�0rNrO�a�
rPrQFznon-hex digit r)rr�repr)r(�bitsrrGs    rrErE�s����D�
�
&�
&���1�$�K�K���1������������C���A�A�
�Q�
�
�
�
�$�
�
�
�
�
��C�����A�A�
�Q�
�
�
�
�$�
�
�
�
�
��D�	�	�"��A�A�2�*�4��7�7�2�2�2�2��B�w�#�a�&�&�1�*�%����Krc���ddl}ddl}	|�|jdd�d��\}}nt#|j$rg}|j|_t
|��t
d��t
d��t
d��|�d��Yd}~nd}~wwxYwd}d}|D]\}}|d	krd
}|dkrd
}�|r2|r0|j|_t
d��|�d��|sd
g}d}	|D]�}
|
d
kr
|jj	}nK	t|
d��}n9#t$r,}|j�|
�d|�d���d}	Yd}~�Xd}~wwxYw	|rt||jj	��nt||jj	|��|
d
kr|�����#|
d
kr|���wwxYw|	r|�|	��dSdS)Nr	r�tdz"usage: quopri [-t | -d] [file] ...z-t: quote tabsz-d: decode; default encoderBFz-tTz-dz -t and -d are mutually exclusive�-�rbz: can't open (z)
)�sys�getopt�argv�error�stderr�stdout�print�exit�stdin�buffer�open�OSErrorr'rr�close)r\r]�opts�args�msg�deco�tabs�orT�sts�file�fps            r�mainrr�s_���J�J�J��M�M�M���]�]�3�8�A�B�B�<��6�6�
��d�d���<�����Z��
�
�c�
�
�
�
�2�3�3�3�
�����
�*�+�+�+�����������������
�����D��D��"�"���1���9�9�T�d���9�9�T�d�������Z��
�
�0�1�1�1�������������
�C������3�;�;���!�B�B�
��$��%�%�����
�
�
��
� � �D�D�D�#�#�#�!F�G�G�G������������
����	��
4��r�3�:�,�-�-�-�-��r�3�:�,�d�3�3�3��s�{�{����
�
�
����s�{�{����
�
�
�
�����
������
�
�
�
�
��s9�&1�
B"�AB�B"�D%�%
E�/"E�E�8F2�2G�__main__)F)FF)�__doc__�__all__rr0rr.�binasciir
r�ImportErrorrr rrrrrDrErr�__name__�rr�<module>rzs=��O�N�?�
>�
>��	
���������'�'�'�'�'�'�'�'�'������
�F�
�F�F�F�����

2�
2�
2�3�3�3�<*�<*�<*�<*�|����)�)�)�)�V����G�G�G�
���$*�*�*�\�z����D�F�F�F�F�F��s��	%�%

ZeroDay Forums Mini