%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�I�d����d�Ze�ee�j��D]%Zej�s�efd�Zee�dez<�'[[d�Zd�Zdd�Z	dd�d�Z
dd�d	�Zy
)c���t�}td�D].\}}d|z||<d|z|d|z<d|z|d|z<d|z|d|z<�0t|d	<t|d
<d|d<d
|d<y)N)�BLACK�RED�GREEN�YELLOW�BLUE�MAGENTA�CYAN�WHITEz[1;3%dmz[3%dm�DARK_z[1;4%dm�REV_z[4%dm�	REV_DARK_�PURPLE�GREYz�C_NORMALz�	UNDERLINE)�globals�	enumerate�DARK_MAGENTA�
DARK_WHITE)�g�i�names   �./usr/lib/python3/dist-packages/samba/colour.py�_gen_ansi_coloursrs����	�A��:�;�0���4��!�#��$��'�!�O��'�D�.��(�1�,��&�4�-�� +�a���+��
��0��A�h�K��A�f�I��A�j�M��A�k�N�c�0�t�|�|�t��S)N)rr)�srs  r�_frBs��&�y����8�<�<rzc_%sc���t�}t|j��D]>\}}|j�s�t	|t
�s�(|j
d�s�:d||<�@y)z5Convert all the ANSI colour codes into empty strings.��N)r�list�items�isupper�
isinstance�str�
startswith)r�k�vs   r�switch_colour_offr*IsL���	�A��Q�W�W�Y�����1��9�9�;�:�a��-�!�,�,�v�2F��A�a�D�rc��t�y)z%Regenerate all the ANSI colour codes.N)r�rr�switch_colour_onr-Qs���rc�<�|rdnd}|rdnd}d||t|�fzS)Nz01;r!�48�38z[%s%s;5;%dm)�int)�n�bg�bold�weight�targets     r�xterm_256_colourr7Vs*���U��F��T�T�F�����A��7�7�7r�auto)�hintc���|dvry|dvry|dvrtd��ddlm}|jd	�ry|D];}t	|t
�r|d
k7ryddl}|j}|j�r�;yy)a.The hint is presumably a --color argument.

    The streams to be considered can be file objects or file names,
    with '-' being a special filename indicating stdout.

    We follow the behaviour of GNU `ls` in what we accept.
    * `git` is stricter, accepting only {always,never,auto}.
    * `grep` is looser, accepting mixed case variants.
    * historically we have used {yes,no,auto}.
    * {always,never,auto} appears the commonest convention.
    * if the caller tries to opt out of choosing and sets hint to None
      or '', we assume 'auto'.
    )�no�never�noneF)�yes�always�forceT)r8�ttyzif-ttyNr!z5unexpected colour hint: {hint}; try always|never|auto�)�environ�NO_COLOR�-N)	�
ValueError�osrC�getr%r&�sys�stdout�isatty)r9�streamsrC�streamrIs     r�is_colour_wantedrN]s����&�&���)�)���6�6��1�2�	2���{�{�:�������f�c�"���}����Z�Z�F��}�}����rc�L�t|d|i�}|rt�|St�|S)Nr9)rNr-r*)r9rL�wanteds   r�colour_if_wantedrQ�s.��
�w�
2�T�
2�F�
����M�	���MrN)FF)rr"r�keys�_kr$rr*r-r7rNrQr,rr�<module>rTs}��:�(���w�y�~�~��
 �$�B�	�z�z�|��	=�!#��	�&�2�+��	$�����
8�%+�)�X%+�r

Zerion Mini Shell 1.0