AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/distutils/__pycache__/ |
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/distutils/__pycache__/log.cpython-35.pyc |
��Yft � @ s� d Z d Z d Z d Z d Z d Z d d l Z Gd d � d � Z e � Z e j Z e j Z e j Z e j Z e j Z e j Z d d � Z d d � Z d S)z,A simple log mechanism styled after PEP 282.� � � � � � Nc @ ss e Z d Z e d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�Logc C s | | _ d S)N)� threshold)�selfr � r �2/opt/alt/python35/lib64/python3.5/distutils/log.py�__init__ s zLog.__init__c C s� | t t t t t f k r1 t d t | � � � | | j k r� | rP | | } | t t t f k rq t j } n t j } | j d k r� | j } | j | d � j | � } | j d | � | j � d S)Nz%s wrong log level�strict�backslashreplacez%s )�DEBUG�INFO�WARN�ERROR�FATAL� ValueError�strr �sys�stderr�stdout�errors�encoding�encode�decode�write�flush)r �level�msg�args�streamr r r r �_log s zLog._logc G s | j | | | � d S)N)r# )r r r r! r r r �log% s zLog.logc G s | j t | | � d S)N)r# r )r r r! r r r �debug( s z Log.debugc G s | j t | | � d S)N)r# r )r r r! r r r �info+ s zLog.infoc G s | j t | | � d S)N)r# r )r r r! r r r �warn. s zLog.warnc G s | j t | | � d S)N)r# r )r r r! r r r �error1 s z Log.errorc G s | j t | | � d S)N)r# r )r r r! r r r �fatal4 s z Log.fatalN)�__name__� __module__�__qualname__r r r# r$ r% r&