OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.utils.deprecation Namespace Reference

Data Structures

class  PipDeprecationWarning
 

Functions

def install_warning_logger ()
 
def deprecated (reason, replacement, gone_in, issue=None)
 

Variables

 DEPRECATION_MSG_PREFIX
 

Detailed Description

A module that implements tooling to enable easy warnings about deprecations.

Function Documentation

◆ deprecated()

def pip._internal.utils.deprecation.deprecated (   reason,
  replacement,
  gone_in,
  issue = None 
)
Helper to deprecate existing functionality.

reason:
    Textual reason shown to the user about why this functionality has
    been deprecated.
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 errors if pip's current version is greater than or equal to
    this.
issue:
    Issue number on the tracker that would serve as a useful place for
    users to find related discussion and provide feedback.

Always pass replacement, gone_in and issue as keyword arguments for clarity
at the call site.

◆ install_warning_logger()

def pip._internal.utils.deprecation.install_warning_logger ( )

Variable Documentation

◆ DEPRECATION_MSG_PREFIX

DEPRECATION_MSG_PREFIX