� ��^i+��<�UdZddlZddlZddlmZmZmZmZmZddl m Z ddl m Z dZGd�de��Zdaeed < dd eeefd eed ed edeedeeddfd�Zdd�Zddd�dedeedeedeedeeddf d�ZdS)zN A module that implements tooling to enable easy warnings about deprecations. �N)�Any�Optional�TextIO�Type�Union)�parse)� __version__z DEPRECATION: c��eZdZdS)�PipDeprecationWarningN)�__name__� __module__� __qualname__����/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/deprecation.pyr r s�������Drr �_original_showwarning�message�category�filename�lineno�file�line�returnc���|�t�t||||||��dSdSt|t��r+tjd��}|�|��dSt||||||��dS)Nzpip._internal.deprecations)r� issubclassr �logging� getLogger�warning)rrrrrr�loggers r� _showwarningr s��� �� � ,� !�'�8�X�v�t�T� R� R� R� R� R� -� ,� �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 rrr�install_warning_loggerr',sB�� ��)�%:�4�H�H�H�H��$� (� 4��+�����%�$r)� feature_flag�issue�reason� replacement�gone_inr(r)c�2�|duo$tt��t|��k}|t�d�f||sdndf|df||sdndf|dfg}d�d �|D����}|rt |���t j|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� zdeprecated..nsK������ �E�:� � !�e�&7� ���%� � �&7�&7�&7�&7��r�)r� stacklevel)r�current_version�DEPRECATION_MSG_PREFIX�joinr r$�warn)r*r+r,r(r)�is_gone� message_partsrs r� deprecatedr=7s���:�T�!�N�e�O�&<�&<��g���&N�G� �*�0�0�0�1� �� >� 8� 8�=�  � � +� � �� � S� S��  � � N� �%�M�0�h�h���!.������G��-�#�G�,�,�,� �M�'�$9�a�H�H�H�H�H�Hr)NN)rN)�__doc__rr$�typingrrrrr�pip._vendor.packaging.versionr�pipr r7r8�Warningr r�__annotations__�str�intr r'r=rrr�rFs��������������5�5�5�5�5�5�5�5�5�5�5�5�5�5�/�/�/�/�/�/�.�.�.�.�.�.�(�� � � � � �G� � � �"��s�!�!�!�"�� O�O� �7�C�<� �O��7�m�O��O� � O� �6� � O� �3�-� O� �O�O�O�O�(,�,�,�,� #'�� AI�AI�AI� �AI��#��AI��c�]� AI� �3�-� AI� �C�=� AI� �AI�AI�AI�AI�AI�AIr