%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/PIL/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/PIL/__pycache__/GribStubImagePlugin.cpython-312.pyc

�

��e2���ddlmZddlmZmZdad�Zd�ZGd�dej�Z	d	�Z
eje	je	e�eje	je
�eje	jd
�y)�)�annotations�)�Image�	ImageFileNc��|ay)z_
    Install application-specific GRIB image handler.

    :param handler: Handler object.
    N��_handler)�handlers �9/usr/lib/python3/dist-packages/PIL/GribStubImagePlugin.py�register_handlerrs	���H�c�&�|dddk(xr|ddk(S)N�sGRIB�r�)�prefixs r�_acceptr s ���"�1�:�� �3�V�A�Y�!�^�3r
c� �eZdZdZdZd�Zd�Zy)�GribStubImageFile�GRIBc�4�|jj�}t|jjd��s
d}t	|��|jj|�d|_d|_|j�}|r|j|�yy)N�zNot a GRIB file�F)rr)
�fp�tellr�read�SyntaxError�seek�_mode�_size�_load�open)�self�offset�msg�loaders    r�_openzGribStubImageFile._open(st����������t�w�w�|�|�A��'�#�C��c�"�"������V����
���
��������K�K���r
c��tS)Nr)r#s rr!zGribStubImageFile._load9s���r
N)�__name__�
__module__�__qualname__�format�format_descriptionr'r!rr
rrr$s��
�F����"r
rc�x�t�ttd�s
d}t|��tj|||�y)N�savezGRIB save handler not installed)r	�hasattr�OSErrorr/)�imr�filenamer%s    r�_saver4=s0����w�x��8�/���c�l���M�M�"�b�(�#r
z.grib)�
__future__r�rrr	rr�
StubImageFilerr4�
register_openr,�
register_save�register_extensionrr
r�<module>r;s���#�����4��	�/�/��2$�����%�,�,�.?��I�����%�,�,�e�4�����*�1�1�7�;r

Zerion Mini Shell 1.0