ó
j4Vdc           @   ss   d  Z  d d l Z d „  Z e d ƒ Z e d ƒ Z e d ƒ Z e d ƒ Z e d ƒ Z e d	 ƒ Z e d
 ƒ Z	 d S(   sð  
.. versionadded:: 0.9.2

Functions for wrapping strings in ANSI color codes.

Each function within this module returns the input string ``text``, wrapped
with ANSI color codes for the appropriate color.

For example, to print some text as green on supporting terminals::

    from fabric.colors import green

    print(green("This text is green!"))

Because these functions simply return modified strings, you can nest them::

    from fabric.colors import red, green

    print(red("This sentence is red, except for " +           green("these words, which are green") + "."))

If ``bold`` is set to ``True``, the ANSI flag for bolding will be flipped on
for that particular invocation, which usually shows up as a bold or brighter
version of the original color on most terminals.

.. versionchanged:: 1.11
    Added support for the shell env var ``FABRIC_DISABLE_COLORS``; if this
    variable is present and set to any non-empty value, all colorization driven
    by this module will be skipped/disabled.
iÿÿÿÿNc            s   t  ‡  f d † } | S(   Nc            s=   ˆ  } t  j j d ƒ r |  S| r/ d | } n  d | |  f S(   Nt   FABRIC_DISABLE_COLORSs   1;%ss   [%sm%s[0m(   t   ost   environt   get(   t   textt   boldt   c(   t   code(    s[   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/colors.pyt   inner$   s    (   t   False(   R   R   (    (   R   s[   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/colors.pyt
   _wrap_with"   s    	t   31t   32t   33t   34t   35t   36t   37(
   t   __doc__R   R
   t   redt   greent   yellowt   bluet   magentat   cyant   white(    (    (    s[   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/fabric/colors.pyt   <module>   s   	