Uname : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
Soft : Apache
Ip : 203.161.60.200
Port : 443
~
/
opt
/
alt
/
python311
/
lib64
/
python3.11
/
__pycache__
[ HOME ]
Exec
Submit
imghdr.cpython-311.pyc
� �,dp � �� � d Z ddlmZ ddlZdgZ ej ed�� � dd�Zg Zd� Z e� e � � d � Ze� e� � d � Ze� e� � d� Z e� e � � d� Ze� e� � d � Ze� e� � d� Ze� e� � d� Ze� e� � d� Ze� e� � d� Ze� e� � d� Ze� e� � d� Ze� e� � d� Ze� e� � d� Zd� Zedk r e� � dS dS )z<Recognize image file formats based on their first few bytes.� )�PathLikeN�what)� � )�removec �� � d } |��t | t t f� � r&t | d� � }|� d� � }n>| � � � }| � d� � }| � |� � t D ]+} |||� � }|r|c |r|� � � S S �, |r|� � � n# |r|� � � w w xY wd S )N�rb� ) � isinstance�strr �open�read�tell�seek�tests�close)�file�h�f�location�tf�ress �-/opt/alt/python311/lib64/python3.11/imghdr.pyr r s� � ��A���9��$��h��0�0� $���t�$�$���F�F�2�J�J����9�9�;�;���I�I�b�M�M��� � �(�#�#�#�� � �B��"�Q��(�(�C�� �� � ���a�g�g�i�i�i�i�� � � ��a�g�g�i�i�i���1��a�g�g�i�i�i�i������4s �BC �8C �C*c �B � | dd� dv rdS | dd� dk rdS dS )z1JPEG data with JFIF or Exif markers; and raw JPEG� � )s JFIFs Exif�jpegN� s ��۩ �r r s r � test_jpegr! * s<