zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
U
H=®dö ã@sdZddlmZddlZddlZddlmZddlmZ    ddl
m Z e rXddl m Z mZdZGd    d
„d
eƒZdadd d „Zd d„Zddd„ZdS)zN
A module that implements tooling to enable easy warnings about deprecations.
é)Úabsolute_importN)Úparse)Ú __version__)ÚMYPY_CHECK_RUNNING)ÚAnyÚOptionalz DEPRECATION: c@s eZdZdS)ÚPipDeprecationWarningN)Ú__name__Ú
__module__Ú __qualname__©r r úVD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/utils/deprecation.pyrsrcCsZ|dk    r$tdk    rVt||||||ƒn2t|tƒrDt d¡}| |¡nt||||||ƒdS)Nzpip._internal.deprecations)Ú_original_showwarningÚ
issubclassrÚloggingÚ    getLoggerÚwarning)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚloggerr r r Ú _showwarning!s*ÿ
 
 ÿrcCs(tjdtddtdkr$tjatt_dS)NÚdefaultT)Úappend)ÚwarningsÚ simplefilterrrÚ showwarningrr r r r Úinstall_warning_logger2sr cCsh|tdf|df|df|dfg}d dd„|Dƒ¡}|dk    rTttƒt|ƒkrTt|ƒ‚tj|td    d
dS) aÅ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.
    z{}z2pip {} will remove support for this functionality.zA possible replacement is {}.zPYou can find discussion regarding this at https://github.com/pypa/pip/issues/{}.ú css$|]\}}|dk    r| |¡VqdS)N)Úformat)Ú.0ÚvalÚtemplater r r Ú    <genexpr>`szdeprecated.<locals>.<genexpr>Né)rÚ
stacklevel)ÚDEPRECATION_MSG_PREFIXÚjoinrÚcurrent_versionrrÚwarn)ÚreasonÚ replacementÚgone_inÚissueÚ    sentencesrr r r Ú
deprecated>s
ÿü    
ÿr2)NN)N)Ú__doc__Ú
__future__rrrÚpip._vendor.packaging.versionrÚpiprr+Úpip._internal.utils.typingrÚtypingrrr)ÚWarningrrrr r2r r r r Ú<module>s