관리-도구
편집 파일: imghdr.cpython-37.opt-2.pyc
B YI~d� � @ s. d dl mZ dgZd$dd�Zg Zdd� Ze�e� dd� Ze�e� d d � Ze�e� dd� Z e�e � d d� 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 � Zd!d"� Zed#k�r*e� dS )%� )�PathLike�whatNc C s� d }zl|d krNt | ttf�r2t| d�}|�d�}n| �� }| �d�}| �|� xtD ]}|||�}|rT|S qTW W d |r~|�� X d S )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�locationZtfZres� r �+/opt/alt/python37/lib64/python3.7/imghdr.pyr s c C s | dd� dkrdS d S )N� � )s JFIFs ExifZjpegr )r r r r r � test_jpeg% s r c C s | � d�rdS d S )Ns �PNG Zpng)� startswith)r r r r r �test_png, s r c C s | d d� dkrdS d S )Nr )s GIF87as GIF89aZgifr )r r r r r �test_gif2 s r c C s | d d� dkrdS d S )N� )s MMs IIZtiffr )r r r r r � test_tiff9 s r c C s | � d�rdS d S )Ns �Zrgb)r )r r r r r �test_rgb@ s r c C s<