3

Q'íc¸ã@sŒdZddlmZddlZddlZGdd„deƒZGdd„deƒZGdd	„d	eƒZ	Gd
d„deeƒZ
Gdd
„d
eƒZdaddd„Z
dd„ZdS)zN
A module that implements tooling to enable easy warnings about deprecations.
é)Úabsolute_importNc@seZdZdS)ÚPipDeprecationWarningN)Ú__name__Ú
__module__Ú__qualname__©rrú4/tmp/pip-build-l_bcah40/pip/pip/utils/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|tƒrbtjdƒ}d|}t|tƒrV|j|ƒqt|j|ƒnt||||||ƒdS)Nzpip.deprecationszDEPRECATION: %s)Ú_warnings_showwarningÚ
issubclassrÚloggingÚ	getLoggerr	ÚwarningÚerror)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚloggerÚlog_messagerrrÚ_showwarning$s


rcCs(tjdtddtdkr$tjatt_dS)NÚdefaultT)Úappend)ÚwarningsÚsimplefilterrr
ÚshowwarningrrrrrÚinstall_warning_loggerDsr!)NN)Ú__doc__Ú
__future__rrrÚWarningrÚobjectr	r
rrr
rr!rrrrÚ<module>s