HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/PIL/__pycache__/PaletteFile.cpython-310.pyc
o

weh�@sddlmZGdd�d�ZdS)�)�o8c@s$eZdZdZdZdd�Zdd�ZdS)�PaletteFilez-File handler for Teragon-style palette files.�RGBc	Cs�dd�td�D�|_	|��}|snT|dd�dkrq
t|�dkr'd}t|��d	d�|��D�}z|\}}}}WntyI|\}}|}}Ynwd
|krTdkrennt|�t|�t|�|j|<qd�|j�|_dS)
NcSsg|]}|||f�qS�r)�.0�irr�H/home/arjun/projects/env/lib/python3.10/site-packages/PIL/PaletteFile.py�
<listcomp>sz(PaletteFile.__init__.<locals>.<listcomp>�Tr�#�dzbad palette filecSsg|]}t|��qSr)�int)r�xrrrr	&s���)	�range�palette�readline�len�SyntaxError�split�
ValueErrorr�join)	�self�fp�s�msg�vr�r�g�brrr�__init__s*��zPaletteFile.__init__cCs|j|jfS)N)r�rawmode)rrrr�
getpalette2szPaletteFile.getpaletteN)�__name__�
__module__�__qualname__�__doc__r#r"r$rrrrrs
rN)�_binaryrrrrrr�<module>s