Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/lib2to3/tests/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/lib2to3/tests/__pycache__/support.cpython-33.pyc

�
��f�c@sBdZddlZddlZddlZddlZddlZddlmZddlm	Z	m
Z
ddlmZej
je�Zej
jej
jed��Zej
jedd�Zeje�Zejede	j�Zd	d
�Zdddd�Zd
d�Zddddd�Zdd�ZejZdS(u Support code for test_*.py filesiN(udedent(upytreeurefactor(udriveru..uGrammar.txtuconvertcCstjt|�dd�S(NudebugT(udriveruparse_stringureformatuTrue(ustring((u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyuparse_stringsuparse_stringcCsA|dkr$tj�j|�}ntjdd�j|�dS(Nu	verbosityi(uNoneuunittestu
TestLoaderuloadTestsFromModuleuTextTestRunnerurun(utest_modutests((u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyu
run_all_testssu
run_all_testscCst|�dS(Nu

(udedent(ustring((u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyureformatsureformatulib2to3cs]|dk	r(�fdd�|D�}ntj�d�}|pDi}tj||dd�S(u

    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.
    csg|]}�d|�qS(u.fixes.fix_((u.0ufix(u	fixer_pkg(u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyu
<listcomp>*s	u"get_refactorer.<locals>.<listcomp>u.fixesuexplicitNT(uNoneurefactoruget_fixers_from_packageuRefactoringTooluTrue(u	fixer_pkgufixersuoptions((u	fixer_pkgu:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyuget_refactorer!s
uget_refactorerccs^xWtjt�D]F\}}}x4|D],}|jd�r&tjj||�Vq&q&WqWdS(Nu.py(uosuwalkuproj_diruendswithupathujoin(udirpathudirnamesu	filenamesufilename((u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyuall_project_files0s
uall_project_files( u__doc__uunittestusysuosuos.pathureutextwrapudedentulib2to3upytreeurefactoru
lib2to3.pgen2udriverupathudirnameu__file__utest_dirunormpathujoinuproj_dirugrammar_pathuload_grammarugrammaruDriveruconvertuparse_stringuNoneu
run_all_testsureformatuget_refactoreruall_project_filesuTestCase(((u:/opt/alt/python33/lib64/python3.3/lib2to3/tests/support.pyu<module>s&!