AlkantarClanX12

Your IP : 3.145.95.233


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/imghdr.cpython-310.opt-2.pyc

o

6��f��@s2	ddlmZdgZd$dd�ZgZdd�Ze�e�dd�Ze�e�d	d
�Ze�e�dd�Z	e�e	�d
d�Z
e�e
�dd�Ze�e�dd�Ze�e�dd�Z
e�e
�dd�Ze�e�dd�Ze�e�dd�Ze�e�dd�Ze�e�dd�Ze�e�dd �Zd!d"�Zed#kr�e�dSdS)%�)�PathLike�whatNcCs�d}zE|dur't|ttf�rt|d�}|�d�}n|��}|�d�}|�|�tD]}|||�}|r>|W|r=|��SSq)W|rF|��dS|rO|��ww)N�rb� )	�
isinstance�strr�open�read�tell�seek�tests�close)�file�h�f�locationZtf�res�r�-/opt/alt/python310/lib64/python3.10/imghdr.pyrs&



���cCs	|dd�dvrdSdS)N��
)sJFIFsExifZjpegr�rrrrr�	test_jpeg%��rcC�|�d�rdSdS)Ns�PNG

Zpng��
startswithrrrr�test_png,�
�rcC�	|dd�dvrdSdS)Nr)sGIF87asGIF89aZgifrrrrr�test_gif2rr cCr)N�)sMMsIIZtiffrrrrr�	test_tiff9rr"cC�	|�d�rdSdS)Ns�Zrgbrrrrr�test_rgb@�
�r$cC�J	t|�dkr|dtd�kr|ddvr!|ddvr#dSdSdSdSdS)	N�r�P�s14r!� 	

Zpbm��len�ordrrrr�test_pbmG�(�r.cCr&)	Nr'rr(r)s25r!r*Zpgmr+rrrr�test_pgmOr/r0cCr&)	Nr'rr(r)s36r!r*Zppmr+rrrr�test_ppmWr/r1cCr#)NsY�j�Zrastrrrrr�	test_rast_r%r2cCr#)Ns#define Zxbmrrrrr�test_xbmfr%r3cCr)NsBMZbmprrrrr�test_bmpmrr4cCs&|�d�r|dd�dkrdSdSdS)NsRIFF��sWEBPZwebprrrrr�	test_webpss�r7cCr)Nsv/1Zexrrrrrr�test_exryrr8cCs�ddl}d}|jdd�r|jddkr|jdd�=d}z|jdd�r2t|jdd�|d�WdStdg|d�WdStyP|j�d�|�d�YdSw)Nrr)z-rr!�.z
[Interrupted]
)�sys�argv�testall�KeyboardInterrupt�stderr�write�exit)r:�	recursiverrr�test�s�rBc	Cs�ddl}ddl}|D]W}|j�|�r?t|ddd�|s|r:td�ddl}|�|j�|�|�d��}t||d�q
td�q
t|ddd�|j	�
�ztt|��Wq
tyatd	�Yq
wdS)
Nrz/:� )�endzrecursing down:�*z*** directory (use -r) ***�:z*** not found ***)
r:�os�path�isdir�print�glob�join�escaper<�stdout�flushr�OSError)�listrAZtoplevelr:rG�filenamerK�namesrrrr<�s&

��r<�__main__)N)rGr�__all__rrr�appendrr r"r$r.r0r1r2r3r4r7r8rBr<�__name__rrrr�<module>sH














�