Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/imghdr.cpython-37.opt-2.pyc

B

YI~d��@s.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#k�r*e�dS)%�)�PathLike�whatNcCs�d}zl|dkrNt|ttf�r2t|d�}|�d�}n|��}|�d�}|�|�xtD]}|||�}|rT|SqTWWd|r~|��XdS)N�rb� )	�
isinstance�strr�open�read�tell�seek�tests�close)�file�h�f�locationZtfZres�r�+/opt/alt/python37/lib64/python3.7/imghdr.pyrs 





cCs|dd�dkrdSdS)N��
)sJFIFsExifZjpegr)rrrrr�	test_jpeg%srcCs|�d�rdSdS)Ns�PNG

Zpng)�
startswith)rrrrr�test_png,s
rcCs|dd�dkrdSdS)Nr)sGIF87asGIF89aZgifr)rrrrr�test_gif2srcCs|dd�dkrdSdS)N�)sMMsIIZtiffr)rrrrr�	test_tiff9srcCs|�d�rdSdS)Ns�Zrgb)r)rrrrr�test_rgb@s
rcCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	N�r�P�s14rs 	

Zpbm)�len�ord)rrrrr�test_pbmGs(r"cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	Nrrrrs25rs 	

Zpgm)r r!)rrrrr�test_pgmOs(r#cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	Nrrrrs36rs 	

Zppm)r r!)rrrrr�test_ppmWs(r$cCs|�d�rdSdS)NsY�j�Zrast)r)rrrrr�	test_rast_s
r%cCs|�d�rdSdS)Ns#define Zxbm)r)rrrrr�test_xbmfs
r&cCs|�d�rdSdS)NsBMZbmp)r)rrrrr�test_bmpms
r'cCs"|�d�r|dd�dkrdSdS)NsRIFF��sWEBPZwebp)r)rrrrr�	test_webpssr*cCs|�d�rdSdS)Nsv/1Zexr)r)rrrrr�test_exrys
r+cCs�ddl}d}|jdd�r8|jddkr8|jdd�=d}y8|jdd�r`t|jdd�|d�ntdg|d�Wn*tk
r�|j�d�|�d�YnXdS)Nrrz-rr�.z
[Interrupted]
)�sys�argv�testall�KeyboardInterrupt�stderr�write�exit)r-�	recursiverrr�test�sr5c	Cs�ddl}ddl}x�|D]�}|j�|�rzt|ddd�|s>|rptd�ddl}|�|j�|d��}t||d�q�td�qt|ddd�|j�	�ytt
|��Wqtk
r�td	�YqXqWdS)
Nrz/:� )�endzrecursing down:�*z*** directory (use -r) ***�:z*** not found ***)r-�os�path�isdir�print�glob�joinr/�stdout�flushr�OSError)�listr4Ztoplevelr-r:�filenamer>�namesrrrr/�s"


r/�__main__)N)r:r�__all__rrr�appendrrrrr"r#r$r%r&r'r*r+r5r/�__name__rrrr�<module>sB
















Hacked By AnonymousFox1.0, Coded By AnonymousFox