관리-도구
편집 파일: lib2to3_ex.cpython-34.pyc
� M�Re� � @ sx d Z d d l m Z d d l m Z d d l m Z m Z d d l Z Gd d � d e � Z Gd d � d e � Z d S) zy Customized Mixin2to3 support: - adds support for converting doctests This module raises an ImportError on Python 2. � )� Mixin2to3)�log)�RefactoringTool�get_fixers_from_packageNc @ s4 e Z d Z d d � Z d d � Z d d � Z d S)�DistutilsRefactoringToolc O s t j | | � d S)N)r �error)�self�msg�args�kw� r �0/tmp/pip-l4uy7dan-build/setuptools/lib2to3_ex.py� log_error s z"DistutilsRefactoringTool.log_errorc G s t j | | � d S)N)r �info)r r r r r r �log_message s z$DistutilsRefactoringTool.log_messagec G s t j | | � d S)N)r �debug)r r r r r r � log_debug s z"DistutilsRefactoringTool.log_debugN)�__name__� __module__�__qualname__r r r r r r r r s r c @ s7 e Z d Z d d d � Z d d � Z d d � Z d S) r Fc C s� | j j d k r d S| s d St j d d j | � � | j � | j � | r� t j r� t | j � } | j | d d d d �q� n t j | | � d S)NTzFixing � �writeZ doctests_only)�distributionZuse_2to3r r �join�_Mixin2to3__build_fixer_names�_Mixin2to3__exclude_fixers� setuptoolsZrun_2to3_on_doctestsr �fixer_names�refactor� _Mixin2to3�run_2to3)r �filesZdoctests�rr r r r s zMixin2to3.run_2to3c C s� | j r d Sg | _ x'