![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3.10/__pycache__/ |
o �*�g� � @ s4 d Z ddlmZ dgZd%dd�Zg Zdd� 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$kr�e� dS dS )&z<Recognize image file formats based on their first few bytes.� )�PathLike�whatNc C s� d }zE|d u r't | ttf�rt| d�}|�d�}n| �� }| �d�}| �|� tD ]}|||�}|r>| W |r=|�� S S q)W |rF|�� d S |rO|�� w w )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�location�tf�res� r �/usr/lib/python3.10/imghdr.pyr s&