File "logging.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyc
File size: 13.29 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


Rec@@s=ddlmZddlZddlZddlZddlZddlZddlZddlmZm	Z	ddl
mZddlm
Z
ddlmZddlmZyddlZWnek
rddlZnXyddlmZWnek
rdZnXdd	lmZeZejZe	d
ZdefdYZe
rterhd
Z qdZ nerdZ n	dZ ej!ddZ"dZ#dej$fdYZ%dZ&dej'fdYZ(dej)j*fdYZ+defdYZ,defdYZ-dZ.dS( i(tabsolute_importN(tFiltert	getLogger(tPY2(tWINDOWS(tDEPRECATION_MSG_PREFIX(t
ensure_dir(tcolorama(tForespip.subprocessortBrokenStdoutLoggingErrorcB@seZdZRS(sO
    Raised if BrokenPipeError occurs for the stdout stream while logging.
    (t__name__t
__module__t__doc__(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR	:scC@s%|tko$|jtjtjfkS(s1See the docstring for non-Windows Python 3 below.(tIOErrorterrnotEINVALtEPIPE(t	exc_classtexc((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt_is_broken_pipe_errorHscC@s1|tkp0|tko0|jtjtjfkS(s1See the docstring for non-Windows Python 3 below.(tBrokenPipeErrortOSErrorRRR(RR((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRNscC@s|tko|jtjkS(s1See the docstring for non-Windows Python 3 below.(R
RR(RR((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRTscC@s
|tkS(s
        Return whether an exception is a broken pipe error.

        Args:
          exc_class: an exception class.
          exc: an exception instance.
        (R(RR((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRYsicc@s;tt_tj|7_z	dVWdtj|8_XdS(sv
    A context manager which will cause the log output to be indented for any
    log messages emitted inside it.
    N(tget_indentationt
_log_statetindentation(tnum((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt
indent_logds
	cC@sttddS(NRi(tgetattrR(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRsstIndentingFormattercB@s#eZdZdZdZRS(cO@s2|jdt|_tt|j||dS(s
        A logging.Formatter that obeys the indent_log() context manager.

        :param add_timestamp: A bool indicating output lines should be prefixed
            with their record's timestamp.
        t
add_timestampN(tpoptFalseRtsuperRt__init__(tselftargstkwargs((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR!yscC@s=|tjkrdS|jtr&dS|tjkr9dSdS(sv
        Return the start of the formatted log message (not counting the
        prefix to add to each line).
        ts	WARNING: sERROR: (tloggingtWARNINGt
startswithRtERROR(R"t	formattedtlevelno((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pytget_message_startscC@stt|j|}|j||j}||}d}|jrm|j|d}djt}n|dt7}dj	g|j
tD]}||^q}|S(s
        Calls the standard formatter, but will indent all of the log message
        lines by our current indentation level.
        R%s%Y-%m-%dT%H:%M:%Ss{t},{record.msecs:03.0f} t (R RtformatR,R+Rt
formatTimetlocalsRtjoint
splitlinestTrue(R"trecordR*t
message_starttprefixtttline((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR.s
	&(R
RR!R,R.(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRws	
	c@sfd}|S(Nc@s#djt|tjjgS(NR%(R1tlistRtStylet	RESET_ALL(tinp(tcolors(s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pytwrappeds((R=R>((R=s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt_color_wrapstColorizedStreamHandlercB@szeZer?ejeejfejeej	fgZ
ngZ
dddZdZ
dZdZdZRS(cC@sDtjj||||_tr@tr@tj|j|_ndS(N(R&t
StreamHandlerR!t	_no_colorRRtAnsiToWin32tstream(R"RDtno_color((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR!s	cC@s/trtr|jjtjkS|jtjkS(sA
        Return whether the handler is using sys.stdout.
        (RRRDR>tsyststdout(R"((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt
_using_stdoutscC@s}ts|jrtSt|jtjs2|jn	|jj}t|dr]|jr]t	St
jjddkryt	StS(NtisattytTERMtANSI(
RRBRt
isinstanceRDRCR>thasattrRIR3tostenvirontget(R"treal_stream((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pytshould_colorscC@satjj||}|jr]x9|jD]+\}}|j|kr+||}Pq+q+Wn|S(N(R&RAR.RRtCOLORSR+(R"R4tmsgtleveltcolor((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR.scC@sYtjd \}}|rC|jrCt||rCtntt|j|S(Ni(RFtexc_infoRHRR	R R@thandleError(R"R4RR((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRXs
N(R
RRR&R)R?RtREDR'tYELLOWRStNoneR!RHRRR.RX(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR@s	
		tBetterRotatingFileHandlercB@seZdZRS(cC@s,ttjj|jtjjj|S(N(	RRNtpathtdirnametbaseFilenameR&thandlerstRotatingFileHandlert_open(R"((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRbs(R
RRb(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR\stMaxLevelFiltercB@seZdZdZRS(cC@s
||_dS(N(RU(R"RU((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyR!scC@s|j|jkS(N(R+RU(R"R4((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pytfilters(R
RR!Rd(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRcs	tExcludeLoggerFiltercB@seZdZdZRS(sQ
    A logging Filter that excludes records from a logger (or its children).
    cC@stt|j|S(N(R ReRd(R"R4((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRds(R
RRRd(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyRe
scC@s|dkrd}nE|dkr*d}n0|dkr?d}n|dkrTd}nd	}tt|}|d2k	}|r|}d}nd
}|}|d3krdnd}idd6d
d6}	idd6dd6}
dddg|rdgng}tjjidd6td6iidd6tjd6d6idd6tjd6d6id d6tjd6d!6d"6iit	d6d#d$6d%6it	d6d#d$6t
d&6d'6d(6ii|d6|
dd)6|d*6|	dd6d!dgd"6d%d+6d6idd6|
dd)6|d*6|	dd6d!gd"6d%d+6d6i|d6|
dd)6|d*6|	dd6dgd"6d%d+6d6idd6|
dd)6|d,6t
d-6d'd+6d6d.6i|d6|d.6d/6ii|d6d06d16|S(4snConfigures and sets up all of the logging

    Returns the requested logging level, as its integer value.
    itDEBUGiR'iR)itCRITICALtINFOs	/dev/nullsext://sys.stdoutRGsext://sys.stderrtstderrs2pip._internal.utils.logging.ColorizedStreamHandlerRDs5pip._internal.utils.logging.BetterRotatingFileHandlertfiletconsoletconsole_errorstconsole_subprocesstuser_logtversiontdisable_existing_loggerss*pip._internal.utils.logging.MaxLevelFilters()RUtexclude_warningsslogging.Filtertnametrestrict_to_subprocesss/pip._internal.utils.logging.ExcludeLoggerFiltertexclude_subprocesstfilterss%(message)sR.tindentRtindent_with_timestampt
formatterstclassREt	formattertfilenametdelayR`trootspip._vendortloggersN(RhR)(RR&R[tconfigt
dictConfigRR'tsubprocess_loggerRrRR3(t	verbosityREt
user_log_fileRUtlevel_numbertinclude_user_logtadditional_log_filet
root_leveltvendored_log_leveltlog_streamsthandler_classesR`((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt
setup_loggings					




(/t
__future__Rt
contextlibRR&tlogging.handlersRNRFRRtpip._vendor.sixRtpip._internal.utils.compatRtpip._internal.utils.deprecationRtpip._internal.utils.miscRt	threadingtImportErrortdummy_threadingtpip._vendorRt	_coloramat	ExceptionR[tpip._vendor.coloramaRtlocalRRR	RtcontextmanagerRRt	FormatterRR?RAR@R`RaR\RcReR(((s/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/logging.pyt<module>sR



				2	K