ó â\e[c@@sÁdZddlmZddlZddlZddlmZddlmZ ddl m Z e r}ddl m Z mZndefd „ƒYZdaddd „Zd „Zdd „ZdS( sN A module that implements tooling to enable easy warnings about deprecations. i(tabsolute_importN(tparse(t __version__(tMYPY_CHECK_RUNNING(tAnytOptionaltPipDeprecationWarningcB@seZRS((t__name__t __module__(((s>/tmp/pip-install-0xiv62/pip/pip/_internal/utils/deprecation.pyRscC@s‚|dk r7tdk r~t||||||ƒq~nGt|tƒretjdƒ}|j|ƒnt||||||ƒdS(Nspip._internal.deprecations(tNonet_original_showwarningt issubclassRtloggingt getLoggertwarning(tmessagetcategorytfilenametlinenotfiletlinetlogger((s>/tmp/pip-install-0xiv62/pip/pip/_internal/utils/deprecation.pyt _showwarnings  cC@s;tjdtdtƒtdkr7tjatt_ndS(Ntdefaulttappend(twarningst simplefilterRtTrueR R t showwarningR(((s>/tmp/pip-install-0xiv62/pip/pip/_internal/utils/deprecation.pytinstall_warning_logger+s  cC@s®d|}|dk r,|dj|ƒ7}n|dk r^dt|ƒ}|dj|ƒ7}n|dk r‘ttƒt|ƒkr‘t|ƒ‚ntj|dtddƒdS( sÅHelper to deprecate existing functionality. reason: Textual reason shown to the user about why this functionality has been deprecated. replacement: Textual suggestion shown to the user about what alternative functionality they can use. gone_in: The version of pip does this functionality should get removed in. Raises errors if pip's current version is greater than or equal to this. issue: Issue number on the tracker that would serve as a useful place for users to find related discussion and provide feedback. Always pass replacement, gone_in and issue as keyword arguments for clarity at the call site. s DEPRECATION: s A possible replacement is {}.s#https://github.com/pypa/pip/issues/s. You can find discussion regarding this at {}.Rt stackleveliN(R tformattstrRtcurrent_versionRRtwarn(treasont replacementtgone_intissueRturl((s>/tmp/pip-install-0xiv62/pip/pip/_internal/utils/deprecation.pyt deprecated6s   $(t__doc__t __future__RR Rtpip._vendor.packaging.versionRtpipRR!tpip._internal.utils.typingRttypingRRtWarningRR R RRR((((s>/tmp/pip-install-0xiv62/pip/pip/_internal/utils/deprecation.pyts