Edit file File name : imghdr.cpython-36.opt-2.pyc Content :3 \� � @ s. d dl mZ dgZd$dd�Zg Zdd� Zeje� dd� Zeje� d d � Zeje� dd� Z eje � d d� Z eje � dd� Zeje� dd� Zeje� dd� Z eje � dd� Zeje� dd� Zeje� dd� Zeje� dd� Zeje� dd� Zeje� dd � Zd!d"� Zed#k�r*e� dS )%� )�PathLike�whatNc C s� d }zl|d krNt | ttf�r2t| d�}|jd�}n| j� }| jd�}| j|� xtD ]}|||�}|rT|S qTW W d |r~|j� X d S )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�locationZtf�res� r �/usr/lib64/python3.6/imghdr.pyr s c C s | dd� dkrdS d S )N� � � JFIF� ExifZjpeg)r r r )r r r r r � test_jpeg% s r c C s | j 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 � GIF87a� GIF89aZgif)r r r )r r r r r �test_gif2 s r c C s | d d� dkrdS d S )N� � MM� IIZtiff)r r! r )r r r r r � test_tiff9 s r"