Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/PIL/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/PIL/__pycache__/PaletteFile.cpython-312.pyc

�

&ٜg���<�ddlmZddlmZddlmZGd�d�Zy)�)�annotations)�IO�)�o8c�$�eZdZdZdZdd�Zdd�Zy)�PaletteFilez-File handler for Teragon-style palette files.�RGBc���td�D�cgc]}t|�dz��}}	|j�}|sn�|dddk(r�t|�dkDr
d}t	|��|j�D�cgc]
}t
|���}}	|\}}}	}
d|cxkrdkr)nn&t|�t|	�zt|
�z||<��d	j|�|_	ycc}wcc}w#t$r|\}}|x}	}
Y�jwxYw)
N��r�#�dzbad palette filer��)
�ranger�readline�len�SyntaxError�split�int�
ValueError�join�palette)�self�fp�ir�s�msg�x�v�r�g�bs           �:/usr/local/lib/python3.12/site-packages/PIL/PaletteFile.py�__init__zPaletteFile.__init__s��&+�C�j�1�j��2�a�5�1�9�j��1�����
�A�����!�u��}���1�v��|�(��!�#�&�&�!"����+��A��Q���A�+�
� ���A�q�!�
�A�}��}���U�R��U�]�R��U�2���
�'�*�x�x��(����/2��,���
����A��	��A�
�s�C�/C�C!�!C6�5C6c�2�|j|jfS)N)r�rawmode)rs r$�
getpalettezPaletteFile.getpalette5s���|�|�T�\�\�)�)rN)rz	IO[bytes]�return�None)r)ztuple[bytes, str])�__name__�
__module__�__qualname__�__doc__r'r%r(�rr$rrs��7��G�)�4*rrN)�
__future__r�typingr�_binaryrrr/rr$�<module>r3s��#��� *� *r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists