HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/utils/__pycache__/deprecation.cpython-311.pyc
�

�mip���UdZddlmZddlZddlZddlmZmZddlm	Z	ddl
mZdZ
Gd�d	e��Zdad
ed<		d$d%d�Zd&d�Zddd�d'd#�ZdS)(zN
A module that implements tooling to enable easy warnings about deprecations.
�)�annotationsN)�Any�TextIO)�parse)�__version__z
DEPRECATION: c��eZdZdS)�PipDeprecationWarningN)�__name__�
__module__�__qualname__���AD:\Python311\Lib\site-packages\pip/_internal/utils/deprecation.pyr	r	s�������Drr	r�_original_showwarning�message�
Warning | str�category�
type[Warning]�filename�str�lineno�int�file�
TextIO | None�line�
str | None�return�Nonec���|�t�t||||||��dSdSt|t��r+tjd��}|�|��dSt||||||��dS)Nzpip._internal.deprecations)r�
issubclassr	�logging�	getLogger�warning)rrrrrr�loggers       r�_showwarningr%s����	O� �	S�!�'�8�X�v�t�T�R�R�R�R�R�	S�	S�	�H�3�	4�	4�O��"�#?�@�@�����w�������g�x��6�4��N�N�N�N�Nrc��tjdtd���t�tjat
t_dSdS)N�defaultT)�append)�warnings�simplefilterr	r�showwarningr%r
rr�install_warning_loggerr,.sF����)�%:�4�H�H�H�H��,� (� 4��+�����,�,r)�feature_flag�issue�reason�replacement�gone_inr-r.�
int | Nonec�2�|duo$tt��t|��k}|t�d�f||sdndf|df||sdndf|dfg}d�d	�|D����}|rt	|���tj|td
���dS)aHelper 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.zA 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/{}� c3�NK�|] \}}|�|�	|�|��V��!dS)N)�format)�.0�value�
format_strs   r�	<genexpr>zdeprecated.<locals>.<genexpr>tsX�������E�:���',�����%� � ������r�)r�
stacklevel)r�current_version�DEPRECATION_MSG_PREFIX�joinr	r)�warn)r/r0r1r-r.�is_gone�
message_partsrs        r�
deprecatedrC9s���:�T�!�N�e�O�&<�&<��g���&N�G�
�*�0�0�0�1���B�<�<�A�	
�
�+�	
�

���W�W��	
�
�N�	
�-�M�8�h�h���!.������G��-�#�G�,�,�,��M�'�$9�a�H�H�H�H�H�Hr)NN)rrrrrrrrrrrrrr)rr)r/rr0rr1rr-rr.r2rr)�__doc__�
__future__rr!r)�typingrr�pip._vendor.packaging.versionr�piprr=r>�Warningr	r�__annotations__r%r,rCr
rr�<module>rKs4�����#�"�"�"�"�"�����������������/�/�/�/�/�/�.�.�.�.�.�.�(��	�	�	�	�	�G�	�	�	�"��!�!�!�!���
O�O�O�O�O�(,�,�,�,�  $��
EI�EI�EI�EI�EI�EI�EI�EIr