관리-도구
편집 파일: deprecation.cpython-36.pyc
3 �Pf� � @ s� d Z ddlmZ ddlZddlZG dd� de�ZG dd� de�ZG dd � d e�Z G d d� dee�Z G dd � d e�Zdaddd�Z dd� ZdS )zN A module that implements tooling to enable easy warnings about deprecations. � )�absolute_importNc @ s e Zd ZdS )�PipDeprecationWarningN)�__name__� __module__�__qualname__� r r �!/usr/lib/python3.6/deprecation.pyr s r c @ s e Zd ZdS )�PendingN)r r r r r r r r s r c @ s e Zd ZdS )�RemovedInPip10WarningN)r r r r r r r r s r c @ s e Zd ZdS )�RemovedInPip11WarningN)r r r r r r r r s r c @ s e Zd ZdS )�Python26DeprecationWarningN)r r r r r r r r s r c C sx |d k r$t d k rtt | |||||� nPt|t�rbtjd�}d| }t|t�rV|j|� qt|j|� nt | |||||� d S )Nzpip.deprecationszDEPRECATION: %s)�_warnings_showwarning� issubclassr �loggingZ getLoggerr Zwarning�error)�message�category�filename�lineno�file�lineZloggerZlog_messager r r �_showwarning$ s 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_loggerD s r )NN)�__doc__Z __future__r r r �Warningr �objectr r r r r r r r r r r �<module> s