%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/lib2to3/tests/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/lib2to3/tests/__pycache__/support.cpython-38.pyc

U

q©ßaœã@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|ƒddS)NT)Údebug)rÚparse_stringÚreformat©Ústring©rú1/usr/local/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||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.
    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.

þ



Zerion Mini Shell 1.0