ok
Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/imghdr.cpython-311.pyc |
� �fp � �� � 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<