Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_lib2to3/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_lib2to3/__pycache__/support.cpython-312.pyc

�

)Μg����dZddlZddlZddlZddlmZddlZddlmZmZddl	m
Zejjej�Zejje�Zejj#ejj%ed��Zejj%ed�Zej*e�Zej*e�Zej0d=ej2eej4�	�Z
ej2eej4�	�Zd
�Zdd�Zd�Zdd
�Zd�Z d�Z!ejDZ"y)z Support code for test_*.py files�N��dedent)�pytree�refactor)�driverz..zGrammar.txt�print)�convertc�B�tjt|�d��S)NT)�debug)r�parse_string�reformat��strings �6/usr/local/lib/python3.12/test/test_lib2to3/support.pyrrs�����x��/�t��<�<�c��|�#tj�j|�}tjd��j	|�y)N�)�	verbosity)�unittest�
TestLoader�loadTestsFromModule�TextTestRunner�run)�test_mod�testss  r�
run_all_testsrs9���}��#�#�%�9�9�(�C�����a�(�,�,�U�3rc��t|�dzS)Nz

rrs rr
r
$s���&�>�F�"�"rc��|�|D�cgc]
}|dz|z��}}ntj|dz�}|xsi}tj||d��Scc}w)a

    A convenience function for creating a RefactoringTool for tests.

    fixers is a list of fixers for the RefactoringTool to use. By default
    "lib2to3.fixes.*" is used. options is an optional dictionary of options to
    be passed to the RefactoringTool.
    z.fixes.fix_z.fixesT)�explicit)r�get_fixers_from_package�RefactoringTool)�	fixer_pkg�fixers�options�fixs    r�get_refactorerr&'sa����=C�D�V�c�)�m�+�c�1�V��D��1�1�)�h�2F�G���m��G��#�#�F�G�d�C�C��	Es�Ac���tj|�D]N\}}}|D]C}|jd�s�|jtjj||���E�Py)Nz.py)�os�walk�endswith�append�path�join)�root�files�dirpath�dirnames�	filenames�filenames      r�_all_project_filesr46sQ��(*����
�$���9�!�H��$�$�U�+���L�L������g�x�8�9�"�)6rc�j�g}tt|�tt|�|j�|S)N)r4�lib2to3_dir�test_dir�sort)r/s r�all_project_filesr9=s)���E��{�E�*��x��'�	�J�J�L��Lr)NN)�lib2to3NN)#�__doc__rr(�os.path�textwraprr:rr�
lib2to3.pgen2r�pgen2_driverr,�dirname�__file__r6r7�normpathr-�proj_dir�grammar_path�load_grammar�grammar�grammar_no_print_statement�keywords�Driverr	�driver_no_print_statementrrr
r&r4r9�TestCase�rr�<module>rMs��&��	����$�0��g�g�o�o�g�.�.�/��
�7�7�?�?�8�$��
�7�7���B�G�G�L�L��4�8�9���w�w�|�|�K��7��
#�,�
#�
#�L�
1��6�\�6�6�|�D���'�'��0�	��	�	�W�f�n�n�	=��/�L�/�/���N�N���
=�4�
#�
D�:�����r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists