Your IP : 18.118.149.94


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/quopri.cpython-313.opt-1.pyc

�

1}g���Sr/SQrSrSrSrSrSSKJrJr S	r
S
rSSjrSSjr
SS
jrSSjrSrSrSr\S:Xa\"5 gg!\	a SrSrN>f=f)zHConversions to/from quoted-printable transport encoding as per RFC 1521.)�encode�decode�encodestring�decodestring�=�Ls0123456789ABCDEF��)�a2b_qp�b2a_qpNc�v�US;aU$US:XaU$U[:H=(d SUs=:*=(a S:*Os (+$)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.
� 	�_� �~)�ESCAPE)�c�	quotetabs�headers   �-/opt/alt/python313/lib64/python3.13/quopri.py�needsquotingrs<��	�F�{����D�y��
���;�1�t�q�0�0�D�0�1�1rc�h�[U5n[[[US-[US-45-$)zQuote a single character.�)�ordr�bytes�HEX�rs r�quoter$s2��	�A��A��E�3�q�"�u�:�s�1�R�4�y�1�2�2�2rc��[b,UR5n[XBUS9nURU5 gUS4SjnSnUR5=n(a�/n	Sn
USSS:XaUSSnSn
UH\n[	U45n[X�U5(a[
U5nU(aUS:XaU	RS5 MKU	RU5 M^ UbU"U5 [RU	5n[U5[:�a2U"US[S	-
S
S9 U[S	-
Sn[U5[:�aM2UnUR5=n(aM�UbU"UW
S9 gg)abRead '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���U(a0USSS;a'URUSS[USS5-U-5 gUS:XaUR[U5U-5 gURX-5 g)N���r
�.)�writer)�s�output�lineEnds   rr$�encode.<locals>.write;sd��
��2�3��6�!��L�L��3�B��%��"�#��-�/�'�9�:�
�$�Y��L�L��q��G�+�,��L�L���%rrr"rr�s=
)r')r�readr$�readlinerrr�append�EMPTYSTRING�join�len�MAXLINESIZE)
�inputr&rr�data�odatar$�prevline�line�outline�strippedr�thislines
             rrr,s[�����z�z�|���t��@�����U�����&��H��.�.�"�
"�$�
"��������9������9�D��H��A��q�d��A��A�&�1�1��!�H���!�t�)����t�$����q�!�����(�O��#�#�G�,���(�m�k�)�
�(�>�K��M�*�F�;���A�
��/�H�	�(�m�k�)���9�.�.�"�
"�$�
"�<��
�h��)�rc��[b
[XUS9$SSKJn U"U5nU"5n[XEX5 UR	5$)Nrr	��BytesIO)r�ior;r�getvalue)r%rrr;�infp�outfps      rrrgs?��
���a�V�<�<���1�:�D��I�E�
�4�	�*��>�>��rc	��[b+UR5n[X2S9nURU5 gSnUR5=n(GaeS[	U5p�US:�a;XhS-
US:Xa0So�S-
nUS:�a#XhS-
US;aUS-
nUS:�a
XhS-
US;aMOSn	Xx:a�XgUS-n
U
S:XaU(a
US	-oWS-nO�U
[
:wa	XZ-oWS-nO�US-U:Xa
U	(dSn	O�US-U:a XgS-US
-[
:XaU[
-oWS
-nOfUS
-U:aU[
XgS-US
-5(a=[
XgS
-US-5(a%U[[XgS-US-545-oWS-nOXZ-oWS-nXx:aM�U	(dURUS-5 SnUR5=n(aGMeU(aURU5 gg)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�rrr	r)r s 	
rr��)	r
r*r$r+r/r�ishexr�unhex)r1r&rr2r3�newr5�i�n�partialrs           rrrrs���
���z�z�|���t�+�����U���

�C��.�.�"�
"�$�
"��#�d�)�1��q�5�T�A�#�a�[�E�)��G�q�S���a�%�D�1��Q�K�8�3��a�C���a�%�D�1��Q�K�8�3���G��e��q��s��A��D�y�V��D�j���c�!��f���g��Q�3�q��1����'���U��1��q��T�A�#�a��c�]�f�4��F�l��!��A��1��q��U�4�!��A�a�C�=�1�1�e�D�1��Q�q�S�M�6J�6J��E�5���c�!�A�#��#7�"9�:�:��!��A��g��Q�3�q��e���L�L��u��%��C�3�.�.�"�
"�$�
"�
"�4����S��rc��[b	[XS9$SSKJn U"U5nU"5n[X4US9 UR	5$)NrAr	r:)r
r<r;rr=)r%rr;r>r?s     rrr�s=��
���a�'�'���1�:�D��I�E�
�4�v�&��>�>��rc��SUs=:*=(a S:*Os =(d1 SUs=:*=(a S:*Os =(d SUs=:*=(a S:*$s $)zDReturn true if the byte ordinal 'c' is a hexadecimal digit in ASCII.�0�9�a�f�A�F�rs rrDrD�sA���1�����F��� 1� 1�T� 1�F�T�Q�5F�5F�$�5F�F�5F�Frc��SnUH|n[U45nSUs=::aS::aO O[S5nO=SUs=::aS::aO O[S5S-
nOS	Us=::aS
::aO O[S	5S-
nUS-[U5W-
-nM~ U$)z.Get the integer value of a hexadecimal number.r	rLrM�0rNrO�a�
rPrQr)rr)r%�bitsrrGs    rrErE�s����D�
���1�$�K���1�����C��A�
�Q�
�$�
��C����A�
�Q�
�$�
��D�	�"��A��B�w�#�a�&�1�*�%����Krc��SSKnSSKnURURSSS5up#SnSnWHupxUS	:XaS
nUS:XdMS
nM U(a4U(a-URUl[
S5 URS5 W(dS
/nSn	UH�n
U
S
:XaURRnO
[U
S5nU(a [X�R
R5 O [X�R
RU5 U
S
:waUR5 M�M� U	(aURU	5 gg!URaYnURUl[
U5 [
S5 [
S5 [
S5 URS5 SnAGNySnAff=f![a1nURRU
<SU<S35 Sn	SnAGMMSnAff=f!U
S
:waUR5 ff=f)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�orU�sts�file�fps            r�mainrr�s�������]�]�3�8�8�A�B�<��6�
���D��D������9�T�d���9�T�d�����Z�Z��
�
�0�1����������
�C����3�;����!�!�B�
��$��%��
	���r�:�:�,�,�-��r�:�:�,�,�d�3��s�{����
��!�$�����
���I�<�<���Z�Z��
�
�c�
�
�2�3�
���
�*�+��������
��0�
��
�
� � �D�#�!F�G�����
���s�{����
��s=�!E�6F,�AG*�F)�AF$�$F)�,
G'�6%G"�"G'�*H�__main__)F)FF)�__doc__�__all__rr0rr-�binasciir
r�ImportErrorrrrrrrrDrErr�__name__rRrr�<module>rys���O�?��	
���������'�
2�3�9*�v�'�R�G�
�$*�\�z���F���y��
�F�
�F��s�A
�

A�A

?>