OwlCyberSecurity - MANAGER
Edit File: quopri.pyo
� �V~gc�����������@���s����d��Z��d�d�d�d�g�Z�d�Z�d�Z�d�Z�d�Z�y�d �d �l�m�Z�m�Z�Wn�e �k �ri�d�Z�d�Z�n�Xd����Z�d����Z�d �d���Z �d �d �d���Z�d �d���Z�d �d���Z�d����Z�d����Z�d����Z�e�d�k�r��e����n��d�S(���sH���Conversions to/from quoted-printable transport encoding as per RFC 1521.t���encodet���decodet���encodestringt���decodestringt���=iL���t���0123456789ABCDEFt����i����(���t���a2b_qpt���b2a_qpc���������C���sG���|��d�k�r�|�S|��d�k�r �|�S|��t��k�pF�d�|��k�oC�d�k�n�S(���s����Decide whether a particular character 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. s��� t���_t��� t���~(���t���ESCAPE(���t���ct ���quotetabst���header(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyt���needsquoting���s ����c���������C���s(���t��|����}�t�t�|�d�t�|�d�S(���s���Quote a single character.i���(���t���ordR���t���HEX(���R ���t���i(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyt���quote#���s����i����c��� ������C���s���t��d�k �rA�|��j����}�t��|�d�|�d�|��}�|�j�|���d�S|�d�d���}�d�}�x|��j����}�|�so�Pn��g��} �d�} �|�d�d�k�r��|�d� }�d�} �n��x^�|�D]V�}�t�|�|�|���r��t�|���}�n��|�r��|�d�k�r��| �j�d ���q��| �j�|���q��W|�d�k �r|�|���n��t�j �| ���}�x<�t �|���t�k�re|�|�t�d � d�d��|�t�d �}�q*W|�}�qY�W|�d�k �r�|�|�d�| ��n��d�S( ���s���Read 'input', apply quoted-printable encoding, and write to 'output'. 'input' and 'output' are files with readline() and write() methods. 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. R���R���Ns��� c���������S���sw���|��r<�|��d�d�k�r<�|�j��|��d� t�|��d���|���n7�|��d�k�rb�|�j��t�|����|���n�|�j��|��|���d��S(���Ni����s��� t���.(���t���writeR���(���t���st���outputt���lineEnd(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR���;���s ����&R���i����R ���R ���i���R���s���= (���R���t���Nonet���readR���t���readlineR���R���t���appendt���EMPTYSTRINGt���joint���lent���MAXLINESIZE( ���t���inputR���R���R���t���datat���odataR���t���prevlinet���linet���outlinet���strippedR ���t���thisline(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR����*���s>���� c���������C���sd���t��d��k �r"�t��|��d�|�d�|��Sd�d�l�m�}�|�|����}�|����}�t�|�|�|�|���|�j����S(���NR���R���i����(���t���StringIO(���R���R���t ���cStringIOR*���R����t���getvalue(���R���R���R���R*���t���infpt���outfp(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR���i���s���� c���������C���sX��t��d�k �r;�|��j����}�t��|�d�|��}�|�j�|���d�Sd�}�x�|��j����}�|�sZ�Pn��d�t�|���}�}�|�d�k�r��|�|�d�d�k�r��d�} �|�d�}�x7�|�d�k�r��|�|�d�d�k�r��|�d�}�q��Wn�d�} �x@|�|�k��r|�|�} �| �d�k�r|�r|�d �}�|�d�}�q��| �t�k�r<|�| �}�|�d�}�q��|�d�|�k�r]| �r]d�} �Pq��|�d�|�k��r�|�|�d�t�k�r�|�t�}�|�d �}�q��|�d �|�k��rt�|�|�d���rt�|�|�d ���r|�t�t �|�|�d�|�d�!����}�|�d�}�q��|�| �}�|�d�}�q��W| �sD�|�j�|�d���d�}�qD�qD�W|�rT|�j�|���n��d�S(���s����Read 'input', apply quoted-printable decoding, and write to 'output'. 'input' and 'output' are files with readline() and write() methods. If 'header' is true, decode underscore as space (per RFC 1522).R���NR���i����i���s��� s��� R ���R ���i���i���( ���R���R���R���R���R���R ���R���t���ishext���chrt���unhex(���R"���R���R���R#���R$���t���newR&���R���t���nt���partialR ���(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR���t���sR���� � � # � � �$ � 8%� � c���������C���s^���t��d��k �r�t��|��d�|��Sd�d�l�m�}�|�|����}�|����}�t�|�|�d�|��|�j����S(���NR���i����(���R*���(���R���R���R+���R*���R���R,���(���R���R���R*���R-���R.���(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR�������s���� c���������C���sP���d�|��k�o�d�k�n�pO�d�|��k�o3�d�k�n�pO�d�|��k�oM�d�k�SS(���s8���Return true if the character 'c' is a hexadecimal digit.t���0t���9t���at���ft���At���F(����(���R ���(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR/�������s����c���������C���s����d�}�x��|��D]��}�d�|�k�o*�d�k�n�r>�t��d���}�n_�d�|�k�oU�d�k�n�rm�t��d���d�}�n0�d�|�k�o��d�k�n�r��t��d���d�}�n�P|�d �t��|���|�}�q �W|�S( ���s.���Get the integer value of a hexadecimal number.i����R5���R6���R7���R8���i ���R9���R:���i���(���R���(���R���t���bitsR ���R���(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyR1�������s���� c����������C���s���d�d��l��}��d�d��l�}�y#�|�j�|��j�d�d���\�}�}�WnC�|�j�k �r��}�|��j�|��_�|�GHd�GHd�GHd�GH|��j�d���n�Xd�}�d�}�x>�|�D]6�\�}�}�|�d �k�r��d�}�n��|�d �k�r��d�}�q��q��W|�r��|�r��|��j�|��_�d�GH|��j�d���n��|�s d�g�}�n��d�} �x��|�D]��} �| �d�k�r8|��j�}�nI�y�t�| ���}�Wn6�t �k �r�}�|��j�j �d �| �|�f���d�} �qn�X|�r�t�|�|��j���n�t�|�|��j�|���|�|��j�k �r|�j ����qqW| �r�|��j�| ���n��d��S(���Ni����i���t���tds"���usage: quopri [-t | -d] [file] ...s���-t: quote tabss���-d: decode; default encodei���i����s���-ts���-ds ���-t and -d are mutually exclusivet���-s���%s: can't open (%s) (���t���syst���getoptt���argvt���errort���stderrt���stdoutt���exitt���stdint���opent���IOErrorR���R���R����t���close(���R>���R?���t���optst���argst���msgt���decot���tabst���oR7���t���stst���filet���fp(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyt���main����sR����#� � � t���__main__N(���t���__doc__t���__all__R���R!���R���R���t���binasciiR���R���t���ImportErrorR���R���R���R����R���R���R���R/���R1���RR���t���__name__(����(����(����s+���/opt/alt/python27/lib64/python2.7/quopri.pyt���<module>���s*��� ?+ ,