| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
3
�N�a+ � @ s� U d Z ddlZddlZddlmZmZmZmZmZ ddl m
Z
ddlmZ
dZG dd� de�Zdaedeeef ee eeee ee dd �d
d�Zdd�d
d�Zddd�eee ee ee ee dd�dd�ZdS )zN
A module that implements tooling to enable easy warnings about deprecations.
� N)�Any�Optional�TextIO�Type�Union)�parse)�__version__z
DEPRECATION: c @ s e Zd ZdS )�PipDeprecationWarningN)�__name__�
__module__�__qualname__� r
r
�!/usr/lib/python3.6/deprecation.pyr s r )�message�category�filename�lineno�file�line�returnc C sZ |d k r$t d k rVt | |||||� n2t|t�rDtjd�}|j| � nt | |||||� d S )Nzpip._internal.deprecations)�_original_showwarning�
issubclassr �loggingZ getLoggerZwarning)r r r r r r Zloggerr
r
r �_showwarning s
r )r c C s( t jdtdd� td kr$t jatt _d S )N�defaultT)�append)�warnings�simplefilterr r �showwarningr r
r
r
r �install_warning_logger, s r )�feature_flag�issue)�reason�replacement�gone_inr r! r c C s� |dk ot t�t |�k}| t� d�f||s.dndf|df||sBdndf|dfg}djd d
� |D ��}|rpt|��tj|tdd� dS )
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.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/{}� c s s, | ]$\}}|d k r|d k r|j |�V qd S )N)�format)�.0�valueZ
format_strr
r
r � <genexpr>o s zdeprecated.<locals>.<genexpr>� )r �
stacklevel)r �current_version�DEPRECATION_MSG_PREFIX�joinr r �warn)r"