/opt/imh-python/lib/python3.9/lib2to3/tests/__pycache__
Edit: /opt/imh-python/lib/python3.9/lib2to3/tests/__pycache__/support.cpython-39.pyc (2237B)
a
cæhœ ã @ sè d Z ddlZddlZddlZddlmZ ddlmZmZ ddl m
Z ej
e¡Zej ej ed¡¡Zej edd¡Ze e¡Ze e¡Zejd= ejeejd Z
ejeejd Zd
d„ Zddd
„Zdd„ Zddd„Zdd„ Zej Z dS )z Support code for test_*.py filesé N©Údedent)ÚpytreeÚrefactor)Údriverz..zGrammar.txtÚprint)Úconvertc C s t jt| ƒddS )NT)Údebug)r Úparse_stringÚreformat©Ústring© r ú6/opt/imh-python/lib/python3.9/lib2to3/tests/support.pyr
s r
c C s, |d u rt ¡ | ¡}t jdd |¡ d S )Né )Ú verbosity)ÚunittestZ
TestLoaderZloadTestsFromModuleZTextTestRunnerÚrun)Ztest_modZtestsr r r Ú
run_all_tests s r c C s t | ƒd S )Nz
r r r r r r " s r Úlib2to3c sB |dur‡ fdd„|D ƒ}nt ˆ d ¡}|p0i }t j||ddS )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.
Nc s g | ]}ˆ d | ‘qS )z.fixes.fix_r )Ú.0Zfix©Ú fixer_pkgr r Ú
. ó z"get_refactorer..z.fixesT)Zexplicit)r Zget_fixers_from_packageZRefactoringTool)r ZfixersÚoptionsr r r Úget_refactorer% s
r c c s> t t¡D ].\} }}|D ]}| d¡rt j | |¡V qq
d S )Nz.py)ÚosÚwalkÚproj_dirÚendswithÚpathÚjoin)ÚdirpathÚdirnamesÚ filenamesÚfilenamer r r Úall_project_files4 s
r' )NN)r NN)!Ú__doc__r r Zos.pathÚtextwrapr r r r Z
lib2to3.pgen2r Zpgen2_driverr! ÚdirnameÚ__file__Ztest_dirÚnormpathr" r Zgrammar_pathZload_grammarZgrammarZgrammar_no_print_statementÚkeywordsZDriverr Zdriver_no_print_statementr
r r r r' ZTestCaser r r r Ú s.
þ