/usr/lib64/python2.6/lib2to3
NameSizeModeActions
fixes/-0755rm
pgen2/-0755rm
fixer_base.py63770644editdlrm
fixer_base.pyc71350644editdlrm
fixer_base.pyo71350644editdlrm
fixer_util.py142250644editdlrm
fixer_util.pyc143870644editdlrm
fixer_util.pyo142810644editdlrm
Grammar.txt65360644editdlrm
Grammar2.6.6.final.0.pickle202140644editdlrm
main.py68680644editdlrm
main.pyc66290644editdlrm
main.pyo65850644editdlrm
patcomp.py69670644editdlrm
patcomp.pyc67370644editdlrm
patcomp.pyo64100644editdlrm
PatternGrammar.txt7930644editdlrm
PatternGrammar2.6.6.final.0.pickle13830644editdlrm
pygram.py8900644editdlrm
pygram.pyc12590644editdlrm
pygram.pyo12590644editdlrm
pytree.py281070644editdlrm
pytree.pyc297760644editdlrm
pytree.pyo289020644editdlrm
refactor.py241790644editdlrm
refactor.pyc226890644editdlrm
refactor.pyo226480644editdlrm
__init__.py70644editdlrm
__init__.pyc1270644editdlrm
__init__.pyo1270644editdlrm
Edit: /usr/lib64/python2.6/lib2to3/fixer_base.pyc (7135B)
Ñò «gc@s~dZddkZddkZddklZddklZddklZde fd„ƒYZ d e fd „ƒYZ dS( s2Base class for fixers (optional, but recommended).iÿÿÿÿNi(tPatternCompiler(tpygram(tdoes_tree_importtBaseFixcBsÎeZdZdZdZdZdZdZe i dƒZ e ƒZ dZeZdZdZeiZd„Zd„Zd„Zd„Zd„Zd d „Zd „Zdd „Zd „Zd„Zd„Z RS(sOptional base class for fixers. The subclass name must be FixFooBar where FooBar is the result of removing underscores and capitalizing the words of the fix name. For example, the class name for a fixer named 'has_key' should be FixHasKey. itposticCs ||_||_|iƒdS(sInitializer. Subclass may override. Args: options: an dict containing the options passed to RefactoringTool that could be used to customize the fixer through the command line. log: a list to append warnings and other messages to. N(toptionstlogtcompile_pattern(tselfRR((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt__init__*s  cCs0|idj otƒi|iƒ|_ndS(s–Compiles self.PATTERN into self.pattern. Subclass may override if it doesn't want to use self.{pattern,PATTERN} in .match(). N(tPATTERNtNoneRRtpattern(R((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyR6scCs||_ti|ƒ|_dS(smSet the filename, and a logger derived from it. The main refactoring tool should call this. N(tfilenametloggingt getLoggertlogger(RR ((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt set_filename?s cCs'h|d6}|ii||ƒo|S(sReturns match for a given parse tree node. Should return a true or false object (not necessarily a bool). It may return a non-empty dict of matching sub-nodes as returned by a matching pattern. Subclass may override. tnode(R tmatch(RRtresults((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyRGs cCs tƒ‚dS(s¶Returns the transformation for a given parse tree node. Args: node: the root of the parse tree that matched the fixer. results: a dict mapping symbolic names to part of the match. Returns: None, or a node that is a modified copy of the argument node. The node argument may also be modified in-place to effect the same change. Subclass *must* override. N(tNotImplementedError(RRR((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt transformSsuxxx_todo_changemecCsK|}x.||ijo|t|iiƒƒ}q W|ii|ƒ|S(s†Return a string suitable for use as an identifier The new name is guaranteed not to conflict with other identifiers. (t used_namestunicodetnumberstnexttadd(Rttemplatetname((s*/usr/lib64/python2.6/lib2to3/fixer_base.pytnew_namecs cCsB|io$t|_|iid|iƒn|ii|ƒdS(Ns### In file %s ###(t first_logtFalseRtappendR (Rtmessage((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt log_messagens  cCsZ|iƒ}|iƒ}d|_d}|i|||fƒ|o|i|ƒndS(sWarn the user that a given chunk of code is not valid Python 3, but that it cannot be converted automatically. First argument is the top-level node for the code in question. Optional second argument is why it can't be converted. usLine %d: could not convert: %sN(t get_linenotclonetprefixR#(RRtreasontlinenot for_outputtmsg((s*/usr/lib64/python2.6/lib2to3/fixer_base.pytcannot_convertts   cCs'|iƒ}|id||fƒdS(sàUsed for warning the user about possible uncertainty in the translation. First argument is the top-level node for the code in question. Optional second argument is why it can't be converted. s Line %d: %sN(R$R#(RRR'R(((s*/usr/lib64/python2.6/lib2to3/fixer_base.pytwarningƒs cCs8|i|_|i|ƒtidƒ|_t|_dS(sîSome fixers need to maintain tree-wide state. This method is called once, at the start of tree fix-up. tree - the root node of the tree to be processed. filename - the name of the file the tree came from. iN(RRt itertoolstcountRtTrueR(RttreeR ((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt start_trees  cCsdS(sóSome fixers need to maintain tree-wide state. This method is called once, at the conclusion of tree fix-up. tree - the root node of the tree to be processed. filename - the name of the file the tree came from. N((RR0R ((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt finish_tree™sN(!t__name__t __module__t__doc__R R R RR RR-R.RtsetRtorderR texplicitt run_ordert _accept_typeRtpython_symbolstsymsR RRRRRR#R+R,R1R2(((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyRs0       tConditionalFixcBs&eZdZdZd„Zd„ZRS(s@ Base class for fixers which not execute if an import is found. cGs#tt|ƒi|Œd|_dS(N(tsuperR=R1R t _should_skip(Rtargs((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyR1©scCsc|idj o|iS|iidƒ}|d}di|d ƒ}t|||ƒ|_|iS(Nt.iÿÿÿÿ(R?R tskip_ontsplittjoinR(RRtpkgR((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyt should_skip­s N(R3R4R5R RBR1RF(((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyR=£s ( R5RR-tpatcompRtRt fixer_utilRtobjectRR=(((s*/usr/lib64/python2.6/lib2to3/fixer_base.pyts  ”