ok
Direktori : /proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/ |
Current File : //proc/self/root/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyo |
� Bu�_c @@ s� d Z d d l m Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z e r} d d l m Z m Z n d Z d e f d � � YZ d a d d d � Z d � Z d d � Z d S( sN A module that implements tooling to enable easy warnings about deprecations. i ( t absolute_importN( t parse( t __version__( t MYPY_CHECK_RUNNING( t Anyt Optionals DEPRECATION: t PipDeprecationWarningc B@ s e Z RS( ( t __name__t __module__( ( ( sP /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyR s c C@ s� | d k r7 t d k r~ t | | | | | | � q~ nG t | t � re t j d � } | j | � n t | | | | | | � d S( Ns pip._internal.deprecations( t Nonet _original_showwarningt issubclassR t loggingt getLoggert warning( t messaget categoryt filenamet linenot filet linet logger( ( sP /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyt _showwarning! s c C@ s; t j d t d t �t d k r7 t j a t t _ n d S( Nt defaultt append( t warningst simplefilterR t TrueR R t showwarningR ( ( ( sP /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/utils/deprecation.pyt install_warning_logger2 s c C@ s� | t d f | d f | d f | d f g } d j d � | D� � } | d k rz t t � t | � k rz t | � � n t j | d t d d �d S( s� 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. s {}s2 pip {} will remove support for this functionality.s A possible replacement is {}.sP You can find discussion regarding this at https://github.com/pypa/pip/issues/{}.t c s@ s0 | ]&