Your IP : 18.118.126.51


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyc

�
�Rec@s}dZddlZddlZyddlZWnek
rGdZnXd�Zdejfd��YZej	d�Z
dS(sONicer log formatting with colours.

Code copied from Tornado, Apache licensed.
i����NcCstt}trpttjd�rptjj�rpy,tj�tjd�dkrXt}nWqpt	k
rlqpXn|S(Ntisattytcolorsi(
tFalsetcursesthasattrtsyststderrRt	setuptermttigetnumtTruet	Exception(tcolor((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyt_stderr_supports_colors'


tLogFormattercBsTeZdZidej6dej6dej6dej6Ze	dd�Zd�ZRS(s&Log formatter with colour support
    iiicCs"tjj|d|�i|_|rt�rtjd�pOtjd�pOd}d
tjkoldknr�t	|d�}nx?|j
j�D].\}}t	tj||�d�|j|<q�Wt	tjd	�d�|_
tj�}|j�d
|_tj�nd|_
d|_dS(sO
        :arg bool color: Enables color support.
        :arg string fmt: Log message format.
        It will be applied to the attributes dict of log records. The
        text between ``%(color)s`` and ``%(end_color)s`` will be colored
        depending on the level if color support is on.
        :arg dict colors: color mappings from logging level to terminal color
        code
        :arg string datefmt: Datetime format.
        Used for formatting ``(asctime)`` placeholder in ``prefix_fmt``.
        .. versionchanged:: 3.2
        Added ``fmt`` and ``datefmt`` arguments.
        tdatefmttsetaftsetftiiitasciitsgr0iiFN(ii(iii(tloggingt	Formattert__init__t_colorsRRttigetstrRtversion_infotstrtDEFAULT_COLORStitemsttparmt_normaltinitscrtgetmaxyxt	termwidthtendwin(tselfRRtfg_colortlevelnotcodetscr((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyR2s 	#
	cCs�t|j�}djd|jdd|j�}|t|�|jkrhd|j|t|�}nd}|j|jkr�|j|j}|j}n
d}}|j||||S(Ns{initial}-{name}tinitialitnamet s  R(	tlentmessagetformatt	levelnameR)R!R%RR(R#trecordtmlent
right_texttspacetstart_colort	end_color((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyt
formatMessage]s
N(
t__name__t
__module__t__doc__RtINFOtWARNINGtERRORtCRITICALRR	tNoneRR5(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyR
(s



+cCs@tj�}|jt��tjj|�tjj|�dS(N(Rt
StreamHandlertsetFormatterR
troott
addHandlertsetLevel(tlevelthandler((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pytenable_colourful_outputos(R8RRRtImportErrorR=RRR
R9RE(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/colorlog.pyt<module>s

	G

?>