uawdijnntqw1x1x1
IP : 3.15.193.71
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
home2
/
..
/
..
/
lib64
/
enchant
/
..
/
games
/
..
/
python3.8
/
__pycache__
/
imghdr.cpython-38.opt-1.pyc
/
/
U e5d��@s2dZddlmZdgZd%dd�ZgZdd�Ze�e�dd �Ze�e�d d�Z e�e �dd �Z e�e �dd�Ze�e�dd�Ze�e�dd�Z e�e �dd�Ze�e�dd�Ze�e�dd�Ze�e�dd�Ze�e�dd�Ze�e�dd�Ze�e�d d!�Zd"d#�Zed$k�r.e�dS)&z<Recognize image file formats based on their first few bytes.�)�PathLike�whatNcCs�d}zp|dkrNt|ttf�r2t|d�}|�d�}n|��}|�d�}|�|�tD]}|||�}|rR|W�SqRW5|r�|��XdS)N�rb� ) �close� isinstance�strr�open�read�tell�seek�tests)�file�h�f�locationZtf�res�r�/usr/lib64/python3.8/imghdr.pyrs cCs|dd�dkrdSdS)z JPEG data in JFIF or Exif format�� )sJFIFsExifZjpegNr�rrrrr� test_jpeg%srcCs|�d�rdSdS)Ns�PNG Zpng�� startswithrrrr�test_png,s rcCs|dd�dkrdSdS)zGIF ('87 and '89 variants)Nr)sGIF87asGIF89aZgifrrrrr�test_gif2srcCs|dd�dkrdSdS)z-TIFF (can be in Motorola or Intel byte order)N�)sMMsIIZtiffrrrrr� test_tiff9srcCs|�d�rdSdS)zSGI image librarys�ZrgbNrrrrr�test_rgb@s rcCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSd S) zPBM (portable bitmap)�r�P�s14r� ZpbmN��len�ordrrrr�test_pbmGs� � �r'cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSd S) zPGM (portable graymap)r rr!r"s25rr#ZpgmNr$rrrr�test_pgmOs� � �r(cCs<t|�dkr8|dtd�kr8|ddkr8|ddkr8dSd S) zPPM (portable pixmap)r rr!r"s36rr#ZppmNr$rrrr�test_ppmWs� � �r)cCs|�d�rdSdS)zSun raster filesY�j�ZrastNrrrrr� test_rast_s r*cCs|�d�rdSdS)zX bitmap (X10 or X11)s#define ZxbmNrrrrr�test_xbmfs r+cCs|�d�rdSdS)NsBMZbmprrrrr�test_bmpms r,cCs"|�d�r|dd�dkrdSdS)NsRIFF��sWEBPZwebprrrrr� test_webpssr/cCs|�d�rdSdS)Nsv/1Zexrrrrrr�test_exrys r0cCs�ddl}d}|jdd�r8|jddkr8|jdd�=d}z8|jdd�r`t|jdd�|d�ntdg|d�Wn*tk r�|j�d�|�d�YnXdS)Nrr"z-rr�.z [Interrupted] )�sys�argv�testall�KeyboardInterrupt�stderr�write�exit)r2� recursiverrr�test�sr:c Cs�ddl}ddl}|D]�}|j�|�r~t|ddd�|s<|rttd�ddl}|�|j�|�|�d��}t||d�q�td�qt|ddd�|j � �ztt|��Wqtk r�td �YqXqdS) Nrz/:� )�endzrecursing down:�*z*** directory (use -r) ***�:z*** not found ***) r2�os�path�isdir�print�glob�join�escaper4�stdout�flushr�OSError)�listr9Ztoplevelr2r?�filenamerC�namesrrrr4�s" r4�__main__)N)�__doc__r?r�__all__rr r�appendrrrrr'r(r)r*r+r,r/r0r:r4�__name__rrrr�<module>sD
/home/../home2/../../lib64/enchant/../games/../python3.8/__pycache__/imghdr.cpython-38.opt-1.pyc