BotaxWebshell
Server IP : 68.178.172.28  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux 28.172.178.68.host.secureserver.net 4.18.0-553.94.1.el8_10.x86_64 #1 SMP Mon Jan 19 05:45:41 EST 2026 x86_64
User : kiskarnal ( 1003)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /opt/python38/lib/python3.8/lib2to3/tests/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/python38/lib/python3.8/lib2to3/tests/__pycache__/support.cpython-38.pyc
U

�i�_��@s�dZddlZddlZddlZddlmZddlmZmZddl	m
Zej�
e�Zej�ej�ed��Zej�edd�Ze�e�Ze�e�Zejd=ejeejd	�Z
ejeejd	�Zd
d�Zddd
�Zdd�Zddd�Zdd�Zej Z dS)z Support code for test_*.py files�N��dedent)�pytree�refactor)�driverz..zGrammar.txt�print)�convertcCstjt|�dd�S)NT)�debug)r�parse_string�reformat��string�r�4/opt/python38/lib/python3.8/lib2to3/tests/support.pyr
sr
cCs,|dkrt���|�}tjdd��|�dS)N�)�	verbosity)�unittestZ
TestLoaderZloadTestsFromModuleZTextTestRunner�run)Ztest_modZtestsrrr�
run_all_testssrcCst|�dS)Nz

rrrrrr"sr�lib2to3csB|dk	r�fdd�|D�}nt��d�}|p0i}tj||dd�S)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.
    Ncsg|]}�d|�qS)z.fixes.fix_r)�.0Zfix��	fixer_pkgrr�
<listcomp>.sz"get_refactorer.<locals>.<listcomp>z.fixesT)Zexplicit)rZget_fixers_from_packageZRefactoringTool)rZfixers�optionsrrr�get_refactorer%s
rccs>t�t�D].\}}}|D]}|�d�rtj�||�Vqq
dS)Nz.py)�os�walk�proj_dir�endswith�path�join)�dirpath�dirnames�	filenames�filenamerrr�all_project_files4s
r&)NN)rNN)!�__doc__rrZos.path�textwraprrrrZ
lib2to3.pgen2rZpgen2_driverr �dirname�__file__Ztest_dir�normpathr!rZgrammar_pathZload_grammarZgrammarZgrammar_no_print_statement�keywordsZDriverrZdriver_no_print_statementr
rrrr&ZTestCaserrrr�<module>s.

�



Youez - 2016 - github.com/yon3zu
LinuXploit