AlkantarClanX12

Your IP : 18.117.105.40


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/imghdr.cpython-311.opt-2.pyc

�

c��fp����	ddlmZddlZdgZejed���dd�ZgZd�Ze�	e��d�Z
e�	e
��d	�Ze�	e��d
�Ze�	e��d�Z
e�	e
��d�Ze�	e��d
�Ze�	e��d�Ze�	e��d�Ze�	e��d�Ze�	e��d�Ze�	e��d�Ze�	e��d�Ze�	e��d�Zd�Zedkre��dSdS)�)�PathLikeN�what)��
)�removec���d}	|��t|ttf��r&t|d��}|�d��}n>|���}|�d��}|�|��tD]+}|||��}|r|c|r|���SS�,	|r|���n#|r|���wwxYwdS)N�rb� )	�
isinstance�strr�open�read�tell�seek�tests�close)�file�h�f�location�tf�ress      �-/opt/alt/python311/lib64/python3.11/imghdr.pyrrs����A���9��$��h��0�0�
$���t�$�$���F�F�2�J�J����9�9�;�;���I�I�b�M�M���	�	�(�#�#�#��	�	�B��"�Q��(�(�C��
��
�
���a�g�g�i�i�i�i��
�	�

��a�g�g�i�i�i���1��a�g�g�i�i�i�i������4s�BC�8C�C*c�D�	|dd�dvrdS|dd�dkrdSdS)N��
)sJFIFsExif�jpeg�s��۩�rrs  r�	test_jpegr!*s?��;���2��w�$�$�$��v�	
�2�A�2��%�	%�	%��v�
&�	%�c�4�|�d��rdSdS)Ns�PNG

�png��
startswithr s  r�test_pngr'3s&���|�|�(�)�)���u��r"c�$�	|dd�dvrdSdS)Nr)sGIF87asGIF89a�gifrr s  r�test_gifr*9s&��$���!��u�&�&�&��u�'�&r"c�$�	|dd�dvrdSdS)N�)sMMsII�tiffrr s  r�	test_tiffr.@s%��7���!��u�����v��r"c�6�	|�d��rdSdS)Ns��rgbr%r s  r�test_rgbr1Gs(����|�|�K� � ���u��r"c��	t|��dkr/|dtd��kr|ddvr|ddvrdSdSdSdSdS)	Nrr�P�s14r,� 	

�pbm��len�ordr s  r�test_pbmr:N�_���
�1�v�v��{�{�	�!���D�	�	���a��d�e�m�m��!��
�0B�0B��u��{���m�m�0B�0Br"c��	t|��dkr/|dtd��kr|ddvr|ddvrdSdSdSdSdS)	Nrrr3r4s25r,r5�pgmr7r s  r�test_pgmr>Vs_�� �
�1�v�v��{�{�	�!���D�	�	���a��d�e�m�m��!��
�0B�0B��u��{���m�m�0B�0Br"c��	t|��dkr/|dtd��kr|ddvr|ddvrdSdSdSdSdS)	Nrrr3r4s36r,r5�ppmr7r s  r�test_ppmrA^r;r"c�6�	|�d��rdSdS)NsY�j��rastr%r s  r�	test_rastrDfs)����|�|�'�(�(���v��r"c�6�	|�d��rdSdS)Ns#define �xbmr%r s  r�test_xbmrGms(����|�|�K� � ���u��r"c�4�|�d��rdSdS)NsBM�bmpr%r s  r�test_bmprJts%���|�|�E�����u��r"c�T�|�d��r|dd�dkrdSdSdS)NsRIFF��sWEBP�webpr%r s  r�	test_webprOzs=���|�|�G�����1�R�4��G�!3�!3��v���!3�!3r"c�4�|�d��rdSdS)Nsv/1�exrr%r s  r�test_exrrR�s&���|�|�'�(�(���u��r"c�n�ddl}d}|jdd�r|jddkr|jdd�=d}	|jdd�r t|jdd�|d��dStdg|d��dS#t$r3|j�d��|�d��YdSwxYw)Nrr4z-rr,�.z
[Interrupted]
)�sys�argv�testall�KeyboardInterrupt�stderr�write�exit)rU�	recursives  r�testr]�s����J�J�J��I�
�x����|������t�+�+��H�Q�q�S�M��	���8�A�B�B�<�	)��C�H�Q�R�R�L�)�Q�/�/�/�/�/��S�E�9�a�(�(�(�(�(�������
���,�-�-�-��������������s�-A7�#A7�79B4�3B4c�F�ddl}ddl}|D�]}|j�|��r�t	|dzd���|s|rft	d��ddl}|�|j�|�|��d����}t||d����t	d����t	|dzd���|j	�
��	t	t|������#t$rt	d	��Y��wxYwdS)
Nrz/:� )�endzrecursing down:�*z*** directory (use -r) ***�:z*** not found ***)
rU�os�path�isdir�print�glob�join�escaperW�stdout�flushr�OSError)�listr\�toplevelrUrc�filenamerg�namess        rrWrW�sL���J�J�J�
�I�I�I��+�+��
�7�=�=��"�"�	+��(�T�/�s�+�+�+�+��
4�H�
4��'�(�(�(������	�	�"�'�,�,�t�{�{�8�/D�/D�c�"J�"J�K�K����y�!�,�,�,�,��2�3�3�3�3��(�S�.�c�*�*�*�*��J������
+��d�8�n�n�%�%�%�%���
+�
+�
+��)�*�*�*�*�*�
+����+�+s�$D�D�D�__main__)N)rcr�warnings�__all__�_deprecated�__name__rrr!�appendr'r*r.r1r:r>rArDrGrJrOrRr]rWrr"r�<module>rwsh��B������������(�����X�g�.�.�.�.�����0	��������Y����������X�������
���X�������
���Y�������
���X����������X����������X����������X�������
���Y�������
���X����������X����������Y����������X����
�
�
�+�+�+�*�z����D�F�F�F�F�F��r"