AlkantarClanX12

Your IP : 18.224.73.157


Current Path : /proc/self/root/usr/lib64/python3.6/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib64/python3.6/__pycache__/imghdr.cpython-36.opt-2.pyc

3


 \��@s.ddlmZdgZd$dd�ZgZdd�Zeje�dd�Zeje�d	d
�Zeje�dd�Z	eje	�d
d�Z
eje
�dd�Zeje�dd�Zeje�dd�Z
eje
�dd�Zeje�dd�Zeje�dd�Zeje�dd�Zeje�dd�Zeje�dd �Zd!d"�Zed#k�r*e�dS)%�)�PathLike�whatNc
Cs�d}zl|dkrNt|ttf�r2t|d�}|jd�}n|j�}|jd�}|j|�xtD]}|||�}|rT|SqTWWd|r~|j�XdS)N�rb� )	�
isinstance�strr�open�read�tell�seek�tests�close)�file�h�f�locationZtf�res�r�/usr/lib64/python3.6/imghdr.pyrs 





cCs|dd�dkrdSdS)N��
�JFIF�ExifZjpeg)rrr)rrrrr�	test_jpeg%srcCs|jd�rdSdS)Ns�PNG

Zpng)�
startswith)rrrrr�test_png,s
rcCs|dd�dkrdSdS)Nr�GIF87a�GIF89aZgif)rrr)rrrrr�test_gif2srcCs|dd�dkrdSdS)N��MM�IIZtiff)r r!r)rrrrr�	test_tiff9sr"cCs|jd�rdSdS)Ns�Zrgb)r)rrrrr�test_rgb@s
r#cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	N�r�P�s14rs 	

Zpbm)�len�ord)rrrrr�test_pbmGs(r)cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	Nr$rr%r&s25rs 	

Zpgm)r'r()rrrrr�test_pgmOs(r*cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSdS)	Nr$rr%r&s36rs 	

Zppm)r'r()rrrrr�test_ppmWs(r+cCs|jd�rdSdS)NsY�j�Zrast)r)rrrrr�	test_rast_s
r,cCs|jd�rdSdS)Ns#define Zxbm)r)rrrrr�test_xbmfs
r-cCs|jd�rdSdS)NsBMZbmp)r)rrrrr�test_bmpms
r.cCs"|jd�r|dd�dkrdSdS)NsRIFF��sWEBPZwebp)r)rrrrr�	test_webpssr1cCs|jd�rdSdS)Nsv/1Zexr)r)rrrrr�test_exrys
r2cCs�ddl}d}|jdd�r8|jddkr8|jdd�=d}y8|jdd�r`t|jdd�|d�ntdg|d�Wn*tk
r�|jjd�|jd�YnXdS)Nrr&z-rr�.z
[Interrupted]
)�sys�argv�testall�KeyboardInterrupt�stderr�write�exit)r4�	recursiverrr�test�sr<cCs�ddl}ddl}x�|D]�}|jj|�rzt|ddd�|s>|rptd�ddl}|j|jj|d��}t||d�q�td�qt|ddd�|jj	�ytt
|��Wqtk
r�td	�YqXqWdS)
Nrz/:� )�endzrecursing down:�*z*** directory (use -r) ***�:z*** not found ***)r4�os�path�isdir�print�glob�joinr6�stdout�flushr�OSError)�listr;Ztoplevelr4rA�filenamerE�namesrrrr6�s"


r6�__main__)N)rAr�__all__rrr�appendrrr"r#r)r*r+r,r-r.r1r2r<r6�__name__rrrr�<module>sB