ok
Direktori : /proc/thread-self/root/opt/alt/python39/lib64/python3.9/__pycache__/ |
Current File : //proc/thread-self/root/opt/alt/python39/lib64/python3.9/__pycache__/imghdr.cpython-39.pyc |
a ���e� � @ s2 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$k�r.e� dS )&z<Recognize image file formats based on their first few bytes.� )�PathLike�whatNc C s� d }z�|d u rNt | ttf�r2t| d�}|�d�}n| �� }| �d�}| �|� tD ](}|||�}|rR| W |rx|�� S qRW |r�|�� n|r�|�� 0 d S )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�locationZtf�res� r �+/opt/alt/python39/lib64/python3.9/imghdr.pyr s"