HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/__pycache__/quopri.cpython-311.opt-1.pyc
�

��VcV���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�V�|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.
    � 	�_� �~)�ESCAPE)�c�	quotetabs�headers   �D:\Python311\Lib\quopri.py�needsquotingrsU��	�F�{�����D�y���
���;�1�t�q�0�0�0�0�D�0�0�0�0�1�1rc��t|��}ttt|dzt|dzf��zS)zQuote a single character.�)�ordr�bytes�HEX�rs r�quoter$s7��	�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�	&��L�L��q���G�+�,�,�,�,�,��L�L��W��%�%�%�%�%r�rr"rrs=
)r')r�readr$�readlinerrr�append�EMPTYSTRING�join�len�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�)�	0�
�E�(�>�K��M�>�*�F�;�;�;�;���A�
���/�H�	�(�m�m�k�)�	0���?�B�*�
��h��)�)�)�)�)�)�*�*rc��t�t|||���Sddlm}||��}|��}t||||��|���S)Nrr	��BytesIO)r�ior:r�getvalue)r%rrr:�infp�outfps      rrrjsm��
�=��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�rrr(r	r s 	
rr��)	r
r)r$r*r.r�ishexr�unhex)r0r&rr1r2�newr4�i�n�partialrs           rrrus���
���z�z�|�|���t�F�+�+�+�����U������

�C���~�~������U��#�d�)�)�1���q�5�	�T�!�A�#�a�%�[�E�)�	��G�Q�q�S���a�%�
�D��1��Q��K�8�3�
��a�C���a�%�
�D��1��Q��K�8�3�
���G��!�e�
	'��Q�q��s�U��A��D�y�
'�V�
'��D�j��a��c�!�!��f��	
'��A�g��1�Q�3�q�q��1����
'�'�
'���U��1��q��
'�T�!�A�#�a��c�'�]�f�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�
	'��	��L�L��u��%�%�%��C�7�8�����S�������rc��t�t||���Sddlm}||��}|��}t|||���|���S)Nr@r	r9)r
r;r:rr<)r%rr:r=r>s     rrr�sl��
�(��a��'�'�'�'��������7�1�:�:�D��G�I�I�E�
�4��v�&�&�&�&��>�>���rc�b�d|cxkodkncpd|cxkodkncpd|cxkodkncS)zDReturn true if the byte ordinal 'c' is a hexadecimal digit in ASCII.�0�9�a�f�A�F�rs rrCrC�sh���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]�}t|f��}d|cxkrdkrnntd��}nEd|cxkrdkrnntd��dz
}n"d	|cxkrd
krnntd	��dz
}|dzt|��|z
z}��|S)z.Get the integer value of a hexadecimal number.r	rKrL�0rMrN�a�
rOrPr)rr)r%�bitsrrFs    rrDrD�s
���D�
�
&�
&���1�$�K�K���1�	3�	3�	3�	3��	3�	3�	3�	3�	3��C���A�A�
�Q�	3�	3�	3�	3�$�	3�	3�	3�	3�	3��C�����A�A�
�Q�	3�	3�	3�	3�$�	3�	3�	3�	3�	3��D�	�	�"��A��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 encoderAFz-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�mainrq�sj���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�!�T�d���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__rr/rr,�binasciir
r�ImportErrorrrrrrrrCrDrq�__name__rQrr�<module>rxsA��O�N�?�
>�
>��	
���������'�'�'�'�'�'�'�'�'������
�F�
�F�F�F�����

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