ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/
Upload File :
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyo

�
Bu�_c@@s�dZddlmZddlZddlZddlmZddlmZ	ddl
mZer}ddlm
Z
mZndZd	efd
��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(tAnytOptionals
DEPRECATION: tPipDeprecationWarningcB@seZRS((t__name__t
__module__(((sP/opt/alt/python36/lib/python3.6/site-packages/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((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyt_showwarning!scC@s;tjdtdt�tdkr7tjatt_ndS(Ntdefaulttappend(twarningstsimplefilterRtTrueR
R	tshowwarningR(((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pytinstall_warning_logger2s	cC@s�|tdf|df|df|dfg}djd�|D��}|d
k	rztt�t|�krzt|��ntj|dtdd	�d
S(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{}s2pip {} will remove support for this functionality.sA possible replacement is {}.sPYou can find discussion regarding this at https://github.com/pypa/pip/issues/{}.t cs@s0|]&\}}|dk	r|j|�VqdS(N(R	tformat(t.0tvalttemplate((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pys	<genexpr>asRt
stackleveliN(tDEPRECATION_MSG_PREFIXtjoinR	Rtcurrent_versionRRtwarn(treasontreplacementtgone_intissuet	sentencesR((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyt
deprecated>s
		$(t__doc__t
__future__RRRtpip._vendor.packaging.versionRtpipRR&tpip._internal.utils.typingRttypingRRR$tWarningRR	R
RRR-(((sP/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyt<module>s	

Zerion Mini Shell 1.0