ó
    Þ j{  ã                   ó  • % S r SSKrSSKrSSKJrJrJrJrJr  SSK	J
r
  SSKJr  Sr " S S\5      rSq\\S	'     SS
\\\4   S\\   S\S\S\\   S\\   SS4S jjrSS jrSSS.S\S\\   S\\   S\\   S\\   SS4S jjrg)zN
A module that implements tooling to enable easy warnings about deprecations.
é    N)ÚAnyÚOptionalÚTextIOÚTypeÚUnion)Úparse)Ú__version__zDEPRECATION: c                   ó   • \ rS rSrSrg)ÚPipDeprecationWarningé   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r   ó    ÚY/var/www/html/gaurav/venv/lib/python3.13/site-packages/pip/_internal/utils/deprecation.pyr   r      s   † Úr   r   Ú_original_showwarningÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚreturnc                 óÊ   • Ub  [         b  [        XX#XE5        g g [        U[        5      (       a(  [        R                  " S5      nUR                  U 5        g [        XX#XE5        g )Nzpip._internal.deprecations)r   Ú
issubclassr   ÚloggingÚ	getLoggerÚwarning)r   r   r   r   r   r   Úloggers          r   Ú_showwarningr#      sZ   € ð ÑÜ Ñ,Ü! '°XÀtÕRð -ä	�HÔ3×	4Ñ	4ô ×"Ò"Ð#?Ó@ˆØ�‰�wÕä˜g°À4ÕNr   c                  ó†   • [         R                  " S[        SS9  [        c   [         R                  q[
        [         l        g g )NÚdefaultT)Úappend)ÚwarningsÚsimplefilterr   r   Úshowwarningr#   r   r   r   Úinstall_warning_loggerr*   ,   s6   € ä×Ò˜)Ô%:À4ÒHô Ñ$Ü (× 4Ñ 4ÐÜ+ŒÕð %r   )Úfeature_flagÚissueÚreasonÚreplacementÚgone_inr+   r,   c                 ó,  • USL=(       a    [        [        5      [        U5      :¬  nU [         S34UU(       d  SOS4US4UU(       d  SOS4US4/nSR                  S	 U 5       5      nU(       a  [	        U5      e[
        R                  " U[        S
S9  g)a¼  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.
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   óZ   #   • U H"  u  pUc  M
  Uc  M  UR                  U5      v •  M$     g 7f)N)Úformat)Ú.0ÚvalueÚ
format_strs      r   Ú	<genexpr>Údeprecated.<locals>.<genexpr>r   s5   é € ð á!.ÑˆEØó 	!à&+ó 	!ˆ
×Ñ˜%× Ð Ú!.ùs   ‚+Ž+“+é   )r   Ú
stacklevel)r   Úcurrent_versionÚDEPRECATION_MSG_PREFIXÚjoinr   r'   Úwarn)r-   r.   r/   r+   r,   Úis_goneÚmessage_partsr   s           r   Ú
deprecatedrA   7   sÀ   € ð: ˜TÐ!×N¤e¬OÓ&<ÄÀgÃÑ&N€Gð 
Ô*Ð+¨4Ð0Ð1àö ñ =àAð	
ð Ø+ð	
ð
 ö ñ Xàð	
ð ØNð	
ð-€Mð8 �h‰hñ á!.óó €Gö Ü# GÓ,Ð,ä‡M‚M�'Ô$9ÀaÓHr   )NN)r   N)Ú__doc__r   r'   Útypingr   r   r   r   r   Úpip._vendor.packaging.versionr   Úpipr	   r;   r<   ÚWarningr   r   Ú__annotations__ÚstrÚintr#   r*   rA   r   r   r   Ú<module>rJ      s  ðòó Û ß 5Õ 5å /å .à(Ð ô	˜Gô 	ð "Ð �sÓ !ð "ØñOØ�7˜C�<Ñ ðOà�7‰mðOð ðOð ð	Oð
 �6Ñ
ðOð �3‰-ðOð 
õOô(,ð  #'ØòEIàðEIð ˜#‘ðEIð �c‰]ð	EIð
 ˜3‘-ðEIð �C‰=ðEIð 
öEIr   