????

Your IP : 18.219.32.237


Current Path : /lib/python3.9/site-packages/setuptools/__pycache__/
Upload File :
Current File : //lib/python3.9/site-packages/setuptools/__pycache__/lib2to3_ex.cpython-39.pyc

a

���f	�@sldZddlZddlmZddlmZddlmZm	Z	ddl
Z
ddlmZGdd	�d	e�Z
Gd
d�de�ZdS)zH
Customized Mixin2to3 support:

 - adds support for converting doctests
�N)�	Mixin2to3)�log)�RefactoringTool�get_fixers_from_package�)�SetuptoolsDeprecationWarningc@s$eZdZdd�Zdd�Zdd�ZdS)�DistutilsRefactoringToolcOstj|g|�R�dS�N)r�error)�self�msg�args�kw�r�9/usr/lib/python3.9/site-packages/setuptools/lib2to3_ex.py�	log_errorsz"DistutilsRefactoringTool.log_errorcGstj|g|�R�dSr	)r�info�rrr
rrr�log_messagesz$DistutilsRefactoringTool.log_messagecGstj|g|�R�dSr	)r�debugrrrr�	log_debugsz"DistutilsRefactoringTool.log_debugN)�__name__�
__module__�__qualname__rrrrrrrrsrc@s&eZdZd	dd�Zdd�Zdd�ZdS)
rFcCs~|jjdurdS|sdSt�dt�t�dd�|��|��|�	�|rnt
jrzt|j
�}|j|ddd�nt�||�dS)NTz�2to3 support is deprecated. If the project still requires Python 2 support, please migrate to a single-codebase solution or employ an independent conversion process.zFixing � )�writeZ
doctests_only)�distributionZuse_2to3�warnings�warnrrr�join�_Mixin2to3__build_fixer_names�_Mixin2to3__exclude_fixers�
setuptoolsZrun_2to3_on_doctestsr�fixer_namesZrefactor�
_Mixin2to3�run_2to3)r�filesZdoctests�rrrrr%s �
zMixin2to3.run_2to3cCsZ|jr
dSg|_tjD]}|j�t|��q|jjdurV|jjD]}|j�t|��q@dSr	)r#r"Zlib2to3_fixer_packages�extendrrZuse_2to3_fixers)r�prrrZ__build_fixer_names4s
zMixin2to3.__build_fixer_namescCsJt|dg�}|jjdur&|�|jj�|D]}||jvr*|j�|�q*dS)NZexclude_fixers)�getattrrZuse_2to3_exclude_fixersr(r#�remove)rZexcluded_fixersZ
fixer_namerrrZ__exclude_fixers>s
zMixin2to3.__exclude_fixersN)F)rrrr%r r!rrrrrs

r)�__doc__rZdistutils.utilrr$Z	distutilsrZlib2to3.refactorrrr"Z_deprecation_warningrrrrrr�<module>s