관리-도구
편집 파일: log.cpython-34.pyc
� �Re�$ � @ s� d Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d � Z e j e j f d d � Z d d � Z Gd d � d e � Z e � Z d S) zLogging � N)�backwardcompat)�colorama� pkg_resourcesc s � f d d � } | S)Nc s# d j t � � | t j j g � S)N� )�join�listr �Style� RESET_ALL)�inp)�colors� �"/tmp/pip-ztkk0jow-build/pip/log.py�wrapped s z_color_wrap.<locals>.wrappedr )r r r )r r �_color_wrap s r c C sm t | t j � s | n | j } | | k r1 d St | d � rP | j � rP d S| j d � d k ri d Sd S)NF�isattyT�TERM�ANSI)� isinstancer �AnsiToWin32r �hasattrr �get)�consumer�environ�std� real_consumerr r r �should_color s r c C s� d j | j d � d d � � } d j | j d � d d � � } | j d � \ } } t t | � d � } d j | | g � } t j | � t j | � k S)N�.� � )r �split�str�intr � parse_version)�current_version�removal_version�major�minor�warn_versionr r r �should_warn&