AlkantarClanX12

Your IP : 18.227.190.69


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/__pycache__/imghdr.cpython-33.pyc

�
��f�
c@sidZdgZddd�ZgZdd�Zeje�dd�Zeje�dd�Zeje�d	d
�Z	eje	�dd�Z
eje
�d
d�Zeje�dd�Zeje�dd�Z
eje
�dd�Zeje�dd�Zeje�dd�Zeje�dd�Zdd�Zedkree�ndS(u<Recognize image file formats based on their first few bytes.uwhatc
Cs�d}z�|dkrpt|t�rEt|d�}|jd�}qp|j�}|jd�}|j|�nx'tD]}|||�}|rw|SqwWWd|r�|j�nXdS(Nurbi (	uNoneu
isinstanceustruopenureadutelluseekutestsuclose(ufileuhufulocationutfures((u+/opt/alt/python33/lib64/python3.3/imghdr.pyuwhat	s 
cCs|dd�dkrdSdS(u JPEG data in JFIF or Exif formatii
sJFIFsExifujpegN(sJFIFsExif((uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyu	test_jpeg#su	test_jpegcCs|jd�rdSdS(Ns�PNG

upng(u
startswith(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_png*sutest_pngcCs|dd�dkrdSdS(uGIF ('87 and '89 variants)NisGIF87asGIF89augif(sGIF87asGIF89a((uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_gif0sutest_gifcCs|dd�dkrdSdS(u-TIFF (can be in Motorola or Intel byte order)NisMMsIIutiff(sMMsII((uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyu	test_tiff7su	test_tiffcCs|jd�rdSdS(uSGI image librarys�urgbN(u
startswith(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_rgb>sutest_rgbcCsPt|�dkrL|dtd�krL|ddkrL|ddkrLdSd	S(
uPBM (portable bitmap)iisPis14is 	

upbmN(ulenuord(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_pbmEs6utest_pbmcCsPt|�dkrL|dtd�krL|ddkrL|ddkrLdSd	S(
uPGM (portable graymap)iisPis25is 	

upgmN(ulenuord(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_pgmMs6utest_pgmcCsPt|�dkrL|dtd�krL|ddkrL|ddkrLdSd	S(
uPPM (portable pixmap)iisPis36is 	

uppmN(ulenuord(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_ppmUs6utest_ppmcCs|jd�rdSdS(uSun raster filesY�j�urastN(u
startswith(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyu	test_rast]su	test_rastcCs|jd�rdSdS(uX bitmap (X10 or X11)s#define uxbmN(u
startswith(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_xbmdsutest_xbmcCs|jd�rdSdS(NsBMubmp(u
startswith(uhuf((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutest_bmpksutest_bmpcCs�ddl}d}|jdd�rQ|jddkrQ|jdd�=d}nyJ|jdd�r�t|jdd�|d�ntdg|d�Wn/tk
r�|jjd�|jd�YnXdS(Niiu-riu.u
[Interrupted]
(usysuargvutestalluKeyboardInterruptustderruwriteuexit(usysu	recursive((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutestus&	 
utestcCsddl}ddl}x�|D]�}|jj|�r�t|ddd�|sW|r�td�ddl}|j|jj|d��}t||d�q�td�qt|ddd�|jj	�ytt
|��Wqtk
r�td	�YqXqWdS(
Niu/:uendu urecursing down:u*u*** directory (use -r) ***u:u*** not found ***(usysuosupathuisdiruprintuglobujoinutestallustdoutuflushuwhatuIOError(ulistu	recursiveutoplevelusysuosufilenameuglobunames((u+/opt/alt/python33/lib64/python3.3/imghdr.pyutestall�s"




utestallu__main__N(u__doc__u__all__uNoneuwhatutestsu	test_jpeguappendutest_pngutest_gifu	test_tiffutest_rgbutest_pbmutest_pgmutest_ppmu	test_rastutest_xbmutest_bmputestutestallu__name__(((u+/opt/alt/python33/lib64/python3.3/imghdr.pyu<module>s: