관리-도구
편집 파일: imghdr.cpython-39.pyc
a R�f� � @ 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"