%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/lib2to3/tests/ |
Current File : //usr/local/lib/python2.7/lib2to3/tests/support.pyo |
ó Pêáac @ s3 d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z m Z d d l m Z e j j e ƒ Z e j j e j j e d ƒ ƒ Z e j j e d d ƒ Z e j e ƒ Z e j e d e j ƒZ d „ Z d d d „ Z d „ Z d d d d „ Z d „ Z e j Z d S( s Support code for test_*.py filesiÿÿÿÿN( t dedent( t pytreet refactor( t drivers ..s Grammar.txtt convertc C s t j t | ƒ d t ƒS( Nt debug( R t parse_stringt reformatt True( t string( ( s1 /usr/local/lib/python2.7/lib2to3/tests/support.pyR s c C sA | d k r$ t j ƒ j | ƒ } n t j d d ƒ j | ƒ d S( Nt verbosityi ( t Nonet unittestt TestLoadert loadTestsFromModulet TextTestRunnert run( t test_modt tests( ( s1 /usr/local/lib/python2.7/lib2to3/tests/support.pyt run_all_tests s c C s t | ƒ d S( Nu ( R ( R ( ( s1 /usr/local/lib/python2.7/lib2to3/tests/support.pyR s t lib2to3c C se | d k r0 g | D] } | d | ^ q } n t j | d ƒ } | pL i } t j | | d t ƒS( s 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. s .fixes.fix_s .fixest explicitN( R R t get_fixers_from_packaget RefactoringToolR ( t fixer_pkgt fixerst optionst fix( ( s1 /usr/local/lib/python2.7/lib2to3/tests/support.pyt get_refactorer! s $c c s^ xW t j t ƒ D]F \ } } } x4 | D], } | j d ƒ r&