§
    u”jß  ã                  ó¨   — U d Z ddlmZ ddlZddlZddlmZmZ ddlm	Z	 ddl
mZ dZ G d„ d	e¦  «        Zdad
ed<   	 	 d)d*d„Zd+d„Zdddddœd,d(„ZdS )-zN
A module that implements tooling to enable easy warnings about deprecations.
é    )ÚannotationsN)ÚAnyÚTextIO)Úparse)Ú__version__zDEPRECATION: c                  ó   — e Zd ZU dZded<   dS )ÚPipDeprecationWarningFÚboolÚinclude_sourceN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__© ó    ún/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/pip/_internal/utils/deprecation.pyr	   r	      s#   € € € € € € Ø €NÐ Ð Ð Ñ Ð Ð r   r	   r   Ú_original_showwarningÚmessageúWarning | strÚcategoryútype[Warning]ÚfilenameÚstrÚlinenoÚintÚfileúTextIO | NoneÚlineú
str | NoneÚreturnÚNonec                ó\  — |�t           �t          | |||||¦  «         d S d S t          |t          ¦  «        rat          j        d¦  «        }t          | t          ¦  «        r!| j        r|                     d| ||¦  «         d S |                     | ¦  «         d S t          | |||||¦  «         d S )Nzpip._internal.deprecationsz
%s (%s:%s))r   Ú
issubclassr	   ÚloggingÚ	getLoggerÚ
isinstancer   Úwarning)r   r   r   r   r   r   Úloggers          r   Ú_showwarningr)      sÎ   € ð ÐÝ Ð,Ý! '¨8°X¸vÀtÈTÑRÔRÐRÐRÐRð -Ð,å	�HÕ3Ñ	4Ô	4ð 	Oõ Ô"Ð#?Ñ@Ô@ˆÝ�gÕ4Ñ5Ô5ð 	$¸'Ô:Pð 	$Ø�NŠN˜<¨°(¸FÑCÔCÐCÐCÐCà�NŠN˜7Ñ#Ô#Ð#Ð#Ð#å˜g x°¸6À4ÈÑNÔNÐNÐNÐNr   c                 óŠ   — t          j        dt          d¬¦  «         t          €t           j        at
          t           _        d S d S )NÚdefaultT)Úappend)ÚwarningsÚsimplefilterr	   r   Úshowwarningr)   r   r   r   Úinstall_warning_loggerr0   1   sB   € åÔ˜)Õ%:À4ÐHÑHÔHÐHõ Ð$Ý (Ô 4ÐÝ+�ÔÐÐð %Ð$r   é   F)Úfeature_flagÚissueÚ
stacklevelr   ÚreasonÚreplacementÚgone_inr2   r3   ú
int | Noner4   r   r
   c                óR  — |duo$t          t          ¦  «        t          |¦  «        k    }| t          › d�f||sdndf|df||sdndf|dfg}d                     d	„ |D ¦   «         ¦  «        }	|rt	          |	¦  «        ‚t	          |	¦  «        }
||
_        t          j        |
|¬
¦  «         dS )a2  Helper to deprecate existing functionality.

    reason:
        Textual reason shown to the user about why this functionality has
        been deprecated. Should be a complete sentence.
    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 an error if pip's current version is greater than or equal to
        this.
    feature_flag:
        Command-line flag of the form --use-feature={feature_flag} for testing
        upcoming functionality.
    issue:
        Issue number on the tracker that would serve as a useful place for
        users to find related discussion and provide feedback.
    stacklevel:
        How many frames up the call stack to attribute the warning to.
        Defaults to 2 (the caller of deprecated()).
    include_source:
        If True, include the source filename and line number in the warning
        output. Useful when the warning originates from external code.
    Nz{}z*pip {} will enforce this behaviour change.z*Since pip {}, this is no longer supported.zA possible replacement is {}.zEYou can use the flag --use-feature={} to test the upcoming behaviour.z@Discussion can be found at https://github.com/pypa/pip/issues/{}ú c              3  óN   K  — | ] \  }}|®|®	|                      |¦  «        V — Œ!d S )N)Úformat)Ú.0ÚvalueÚ
format_strs      r   ú	<genexpr>zdeprecated.<locals>.<genexpr>   sK   è è € ð ð áˆE�:ØÐ! eÐ&7ð 	×Ò˜%Ñ Ô à&7Ð&7Ð&7Ð&7ðð r   )r4   )r   Úcurrent_versionÚDEPRECATION_MSG_PREFIXÚjoinr	   r   r-   Úwarn)r5   r6   r7   r2   r3   r4   r   Úis_goneÚmessage_partsr   r'   s              r   Ú
deprecatedrG   <   s  € ðJ ˜TÐ!ÐN¥e­OÑ&<Ô&<ÅÀgÁÄÒ&N€Gð 
Õ*Ð0Ð0Ð0Ð1àð ðBÐ<Ð<àAð	
ð Ø+ð	
ð
 ð ðÐWÐWàð	
ð ØNð	
ð-€Mð8 �hŠhð ð à!.ðñ ô ñ ô €Gð ð -Ý# GÑ,Ô,Ð,å# GÑ,Ô,€GØ+€GÔÝ„M�' jÐ1Ñ1Ô1Ð1Ð1Ð1r   )NN)r   r   r   r   r   r   r   r   r   r   r   r   r    r!   )r    r!   )r5   r   r6   r   r7   r   r2   r   r3   r8   r4   r   r   r
   r    r!   )Ú__doc__Ú
__future__r   r$   r-   Útypingr   r   Úpip._vendor.packaging.versionr   Úpipr   rA   rB   ÚWarningr	   r   r   r)   r0   rG   r   r   r   ú<module>rN      s2  ððð ð ð #Ð "Ð "Ð "Ð "Ð "à €€€Ø €€€Ø Ð Ð Ð Ð Ð Ð Ð à /Ð /Ð /Ð /Ð /Ð /à .Ð .Ð .Ð .Ð .Ð .à(Ð ð!ð !ð !ð !ð !˜Gñ !ô !ð !ð "Ð Ð !Ð !Ð !Ñ !ð ØðOð Oð Oð Oð Oð.,ð ,ð ,ð ,ð   $ØØØ ðO2ð O2ð O2ð O2ð O2ð O2ð O2ð O2r   