b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/imghdr.pyo
Size4.79 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:30
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s?dZdgZdd�ZgZd�Zeie�d�Zeie�d�Zeie�d�Z eie �d�Z
eie
�d�Z eie �d �Z eie �d
�Z
eie
�d �Zeie�d �Zeie�d
�Zeie�d�Zeie�d�Zd�ZdS(s<Recognize image file formats based on their first few bytes.twhatcCsÄ|djodt|t�o"t|d�}|id�}qw|i�}|id�}|i|�d}nd}z0x)tD]!}|||�}|o|Sq�WWd|o|i�nXdS(Ntrbi ( tNonet
isinstancet
basestringtopentreadttelltseektteststclose(tfilethtftlocationttftres((s/usr/lib64/python2.6/imghdr.pyR s$
 


cCs|dd!djodSdS(sJPEG data in JFIF formatii
tJFIFtjpegN((R R
((s/usr/lib64/python2.6/imghdr.pyt test_jpeg%scCs|dd!djodSdS(sJPEG data in Exif formatii
tExifRN((R R
((s/usr/lib64/python2.6/imghdr.pyt test_exif,scCs|d djodSdS(Nis�PNG

tpng((R R
((s/usr/lib64/python2.6/imghdr.pyttest_png3scCs|d djodSdS(sGIF ('87 and '89 variants)itGIF87atGIF89atgifN(RR((R R
((s/usr/lib64/python2.6/imghdr.pyttest_gif9scCs|d djodSdS(s-TIFF (can be in Motorola or Intel byte order)itMMtIIttiffN(RR((R R
((s/usr/lib64/python2.6/imghdr.pyt test_tiff@scCs|d djodSdS(sSGI image libraryisÚtrgbN((R R
((s/usr/lib64/python2.6/imghdr.pyttest_rgbGscCsOt|�djo8|ddjo'|ddjo|ddjodSd S(
sPBM (portable bitmap)iitPit14is
tpbmN(tlen(R R
((s/usr/lib64/python2.6/imghdr.pyttest_pbmNs3cCsOt|�djo8|ddjo'|ddjo|ddjodSd S(
sPGM (portable graymap)iiR"it25is
tpgmN(R%(R R
((s/usr/lib64/python2.6/imghdr.pyttest_pgmVs3cCsOt|�djo8|ddjo'|ddjo|ddjodSd S(
sPPM (portable pixmap)iiR"it36is
tppmN(R%(R R
((s/usr/lib64/python2.6/imghdr.pyttest_ppm^s3cCs|d djodSdS(sSun raster fileisY¦j�trastN((R R
((s/usr/lib64/python2.6/imghdr.pyt test_rastfscCs&d}|t|� |jodSdS(sX bitmap (X10 or X11)s#define txbmN(R%(R R
ts((s/usr/lib64/python2.6/imghdr.pyttest_xbmmscCs|d djodSdS(NitBMtbmp((R R
((s/usr/lib64/python2.6/imghdr.pyttest_bmpusc CsÂddk}d}|ido+|iddjo|idd5d}ny@|idot|id|d�ntdg|d�Wn0tj
o$|iid�|id�nXdS(Niÿÿÿÿiis-rit.s
[Interrupted]
(tsystargvttestalltKeyboardInterrupttstderrtwritetexit(R6t recursive((s/usr/lib64/python2.6/imghdr.pyttests "

cCsáddk}ddk}xÂ|D]º}|ii|�ob|dG|p|oCdGHddk}|i|ii|d��}t||d�qÙdGHq|dG|ii�yt |�GHWqt
j
o dGHqXqWdS( Niÿÿÿÿs/:srecursing down:t*is*** directory (use -r) ***t:s*** not found ***( R6tostpathtisdirtglobtjoinR8tstdouttflushRtIOError(tlistR=ttoplevelR6RAtfilenameRDtnames((s/usr/lib64/python2.6/imghdr.pyR8�s$    
N(t__doc__t__all__RRR RtappendRRRRR!R&R)R,R.R1R4R>R8(((s/usr/lib64/python2.6/imghdr.pyt<module>s: