Your IP : 3.21.12.122


Current Path : /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/lib2to3_ex.cpython-35.pyc



�Re��@sxdZddlmZddlmZddlmZmZddl	Z	Gdd�de�Z
Gdd	�d	e�ZdS)
zy
Customized Mixin2to3 support:

 - adds support for converting doctests


This module raises an ImportError on Python 2.
�)�	Mixin2to3)�log)�RefactoringTool�get_fixers_from_packageNc@s4eZdZdd�Zdd�Zdd�ZdS)�DistutilsRefactoringToolcOstj||�dS)N)r�error)�self�msg�args�kw�r��/builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/lib2to3_ex.py�	log_errorsz"DistutilsRefactoringTool.log_errorcGstj||�dS)N)r�info)rr	r
rrr
�log_messagesz$DistutilsRefactoringTool.log_messagecGstj||�dS)N)r�debug)rr	r
rrr
�	log_debugsz"DistutilsRefactoringTool.log_debugN)�__name__�
__module__�__qualname__rrrrrrr
rsrc@s7eZdZddd�Zdd�Zdd�ZdS)	rFcCs�|jjdk	rdS|s dStjddj|��|j�|j�|r�tjr�t	|j
�}|j|dddd�ntj
||�dS)NTzFixing � �writeZ
doctests_only)�distributionZuse_2to3rr�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_2to3cCs�|jr
dSg|_x'tjD]}|jjt|��q W|jjdk	rx*|jjD]}|jjt|��q_WdS)N)rrZlib2to3_fixer_packages�extendrrZuse_2to3_fixers)r�prrr
Z__build_fixer_names.s		zMixin2to3.__build_fixer_namescCskt|dg�}|jjdk	r7|j|jj�x-|D]%}||jkr>|jj|�q>WdS)NZexclude_fixers)�getattrrZuse_2to3_exclude_fixersr#r�remove)rZexcluded_fixersZ
fixer_namerrr
Z__exclude_fixers8s
zMixin2to3.__exclude_fixersN)rrrr rrrrrr
rs
r)�__doc__�distutils.utilrr�	distutilsr�lib2to3.refactorrrrrrrrr
�<module>s

?>