Viewing File: /usr/lib/python3.6/site-packages/pip/utils/__pycache__/deprecation.cpython-36.pyc

3

aj@sdZddlmZddlZddlZGdddeZGdddeZGdd	d	eZ	Gd
ddeeZ
Gdd
d
eZdadddZ
ddZdS)zN
A module that implements tooling to enable easy warnings about deprecations.
)absolute_importNc@seZdZdS)PipDeprecationWarningN)__name__
__module____qualname__rr!/usr/lib/python3.6/deprecation.pyr
src@seZdZdS)PendingN)rrrrrrrr	sr	c@seZdZdS)RemovedInPip10WarningN)rrrrrrrr
sr
c@seZdZdS)RemovedInPip11WarningN)rrrrrrrrsrc@seZdZdS)Python26DeprecationWarningN)rrrrrrrrsrcCsx|dk	r$tdk	rtt||||||nPt|trbtjd}d|}t|trV|j|qt|j|nt||||||dS)Nzpip.deprecationszDEPRECATION: %s)_warnings_showwarning
issubclassrloggingZ	getLoggerr	Zwarningerror)messagecategoryfilenamelinenofilelineZloggerZlog_messagerrr_showwarning$s


rcCs(tjdtddtdkr$tjatt_dS)NdefaultT)append)warningssimplefilterrr
showwarningrrrrrinstall_warning_loggerDsr)NN)__doc__Z
__future__rrrWarningrobjectr	r
rrr
rrrrrr<module>s
 
Back to Directory File Manager