%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/utils/color.pyc

�
���^c@@s�dZddlmZmZmZddlZddlZddlmZddl	m
Z
eje�Z
d�Zedd�ZdS(u&
Functions used for CLI color themes.
i(tabsolute_importtprint_functiontunicode_literalsN(tsix(t
TextFormatcC@sddl}ddl}ddl}tjj|�sItjd|�ny�|jj	j
|d���}|jjj|jj
j|��}i}x%|D]}dj||�||<q�Wt|t�s�tjd|�iS|SWdQXWn"tk
rtjd|�iSXdS(u'
    Return the color theme to use
    iNu#The named theme %s if not availableurbu[{0}muThe theme file %s is not a dictu!Failed to read the color theme %s(tsalt.utils.datatsalt.utils.filestsalt.utils.yamltostpathtisfiletlogtwarningtutilstfilestfopentdatatdecodetyamlt	safe_loadtformatt
isinstancetdictt	Exception(tthemetsalttfp_tcolorstrettcolor((s4/usr/lib/python2.7/site-packages/salt/utils/color.pytget_color_themes$$

cC@s�itd�d6tdd�d6td�d6tdd�d6td�d	6tdd�d
6td�d6tdd�d
6td�d6tdd�d6td�d6tdd�d6td�d6tdd�d6td�d6tdd�d6td�d6td�d6}|r$|jt|��n|sHx|D]}d||<q1Wnt|tj�r�||kr�x1|D]&}|dkr�qmn||||<qmWq�n|S(u�
    Return the colors as an easy to use dict. Pass `False` to deactivate all
    colors by setting them to empty strings. Pass a string containing only the
    name of a single color to be used in place of all colors. Examples:

    .. code-block:: python

        colors = get_colors()  # enable all colors
        no_colors = get_colors(False)  # disable all colors
        red_colors = get_colors('RED')  # set all colors to red

    ublackuBLACKuboldu	DARK_GRAYureduREDu	LIGHT_REDugreenuGREENuLIGHT_GREENuyellowuYELLOWuLIGHT_YELLOWublueuBLUEu
LIGHT_BLUEumagentauMAGENTAu
LIGHT_MAGENTAucyanuCYANu
LIGHT_CYANuwhiteu
LIGHT_GRAYuWHITEudefaultu
DEFAULT_COLORuresetuENDCu(RtupdateRRRtstring_types(tuseRRR((s4/usr/lib/python2.7/site-packages/salt/utils/color.pyt
get_colors,s>










(t__doc__t
__future__RRRtloggingRtsalt.extRtsalt.textformatRt	getLoggert__name__RRtTruetNoneR"(((s4/usr/lib/python2.7/site-packages/salt/utils/color.pyt<module>s	

Zerion Mini Shell 1.0