MMCT TEAM
Server IP : 217.21.91.233  /  Your IP : 216.73.216.58
Web Server : LiteSpeed
System : Linux in-mum-web832.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u952924200 ( 952924200)
PHP Version : 8.2.27
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /../opt/alt/dav1d/../php54/../python27/lib64/python2.7/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //../opt/alt/dav1d/../php54/../python27/lib64/python2.7/imghdr.pyc
�
�V~gc@s?dZdgZdd�ZgZd�Zeje�d�Zeje�d�Zeje�d�Z	eje	�d�Z
eje
�d�Zeje�d	�Zeje�d
�Z
eje
�d�Zeje�d�Zeje�d
�Zeje�d�Zeje�d�Zd�ZdS(s<Recognize image file formats based on their first few bytes.twhatcCs�d}z�|dkrpt|t�rEt|d�}|jd�}qp|j�}|jd�}|j|�nx'tD]}|||�}|rw|SqwWWd|r�|j�nXdS(Ntrbi (	tNonet
isinstancet
basestringtopentreadttelltseektteststclose(tfilethtftlocationttftres((s+/opt/alt/python27/lib64/python2.7/imghdr.pyR	s 
cCs|dd!dkrdSdS(sJPEG data in JFIF formatii
tJFIFtjpegN((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyt	test_jpeg#scCs|dd!dkrdSdS(sJPEG data in Exif formatii
tExifRN((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyt	test_exif*scCs|d dkrdSdS(Nis�PNG

tpng((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_png1scCs|d dkrdSdS(sGIF ('87 and '89 variants)itGIF87atGIF89atgifN(RR((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_gif7scCs|d dkrdSdS(s-TIFF (can be in Motorola or Intel byte order)itMMtIIttiffN(RR((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyt	test_tiff>scCs|d dkrdSdS(sSGI image libraryis�trgbN((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_rgbEscCsJt|�dkrF|ddkrF|ddkrF|ddkrFdSd	S(
sPBM (portable bitmap)iitPit14is 	

tpbmN(tlen(RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_pbmLs0cCsJt|�dkrF|ddkrF|ddkrF|ddkrFdSd	S(
sPGM (portable graymap)iiR"it25is 	

tpgmN(R%(RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_pgmTs0cCsJt|�dkrF|ddkrF|ddkrF|ddkrFdSd	S(
sPPM (portable pixmap)iiR"it36is 	

tppmN(R%(RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_ppm\s0cCs|d dkrdSdS(sSun raster fileisY�j�trastN((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyt	test_rastdscCs$d}|t|� |kr dSdS(sX bitmap (X10 or X11)s#define txbmN(R%(RR
ts((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_xbmkscCs|d dkrdSdS(NitBMtbmp((RR
((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest_bmpsscCs�ddl}d}|jdrH|jddkrH|jdd5d}ny>|jdrrt|jd|d�ntdg|d�Wn.tk
r�|jjd�|jd�nXdS(Ni����iis-rit.s
[Interrupted]
(tsystargvttestalltKeyboardInterrupttstderrtwritetexit(R6t	recursive((s+/opt/alt/python27/lib64/python2.7/imghdr.pyttest}s 
	

cCs�ddl}ddl}x�|D]�}|jj|�r�|dG|sK|r�dGHddl}|j|jj|d��}t||d�q�dGHq|dG|jj�yt	|�GHWqt
k
r�dGHqXqWdS(	Ni����s/:srecursing down:t*is*** directory (use -r) ***t:s*** not found ***(R6tostpathtisdirtglobtjoinR8tstdouttflushRtIOError(tlistR=ttoplevelR6RAtfilenameRDtnames((s+/opt/alt/python27/lib64/python2.7/imghdr.pyR8�s"


N(t__doc__t__all__RRR	RtappendRRRRR!R&R)R,R.R1R4R>R8(((s+/opt/alt/python27/lib64/python2.7/imghdr.pyt<module>s:		
	
	
	
	
	
	
	
	
	
	
	
	

MMCT - 2023