/opt/alt/python311/lib64/python3.11/lib2to3/__pycache__
NameSizeModeActions
btm_matcher.cpython-311.opt-1.pyc78140644editdlrm
btm_matcher.cpython-311.opt-2.pyc62640644editdlrm
btm_matcher.cpython-311.pyc78140644editdlrm
btm_utils.cpython-311.opt-1.pyc115300644editdlrm
btm_utils.cpython-311.opt-2.pyc100560644editdlrm
btm_utils.cpython-311.pyc115300644editdlrm
fixer_base.cpython-311.opt-1.pyc84310644editdlrm
fixer_base.cpython-311.opt-2.pyc57520644editdlrm
fixer_base.cpython-311.pyc84310644editdlrm
fixer_util.cpython-311.opt-1.pyc223810644editdlrm
fixer_util.cpython-311.opt-2.pyc203680644editdlrm
fixer_util.cpython-311.pyc223810644editdlrm
main.cpython-311.opt-1.pyc152200644editdlrm
main.cpython-311.opt-2.pyc134840644editdlrm
main.cpython-311.pyc152660644editdlrm
patcomp.cpython-311.opt-1.pyc102230644editdlrm
patcomp.cpython-311.opt-2.pyc97440644editdlrm
patcomp.cpython-311.pyc107250644editdlrm
pygram.cpython-311.opt-1.pyc20700644editdlrm
pygram.cpython-311.opt-2.pyc18730644editdlrm
pygram.cpython-311.pyc20700644editdlrm
pytree.cpython-311.opt-1.pyc352100644editdlrm
pytree.cpython-311.opt-2.pyc268610644editdlrm
pytree.cpython-311.pyc369930644editdlrm
refactor.cpython-311.opt-1.pyc384440644editdlrm
refactor.cpython-311.opt-2.pyc345390644editdlrm
refactor.cpython-311.pyc385260644editdlrm
__init__.cpython-311.opt-1.pyc3870644editdlrm
__init__.cpython-311.opt-2.pyc3870644editdlrm
__init__.cpython-311.pyc3870644editdlrm
__main__.cpython-311.opt-1.pyc3310644editdlrm
__main__.cpython-311.opt-2.pyc3310644editdlrm
__main__.cpython-311.pyc3310644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/lib2to3/__pycache__/fixer_base.cpython-311.pyc (8431B)
§ Ž|ÀèÐäœãón—dZddlZddlmZddlmZddlmZGd„de¦«Z Gd „d e ¦«Z dS) z2Base class for fixers (optional, but recommended).éNé)ÚPatternCompiler)Úpygram)Údoes_tree_importcóÆ—eZdZdZdZdZdZdZdZe j d¦«Z e ¦«Z dZdZdZdZdZdZejZd„Zd„Zd „Zd „Zd „Zdd „Zd„Zdd„Zd„Zd„Z d„Z!dS)ÚBaseFixaOptional 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. NrÚpostFécóJ—||_||_| ¦«dS)aInitializer. Subclass may override. Args: options: a 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)ÚoptionsÚlogÚcompile_pattern)Úselfr r s ú9/opt/alt/python311/lib64/python3.11/lib2to3/fixer_base.pyÚ__init__zBaseFix.__init__/s*€ðˆŒ ؈ŒØ ×ÒÑÔÐÐÐócó†—|j�9t¦«}| |jd¬¦«\|_|_dSdS)z–Compiles self.PATTERN into self.pattern. Subclass may override if it doesn't want to use self.{pattern,PATTERN} in .match(). NT)Ú with_tree)ÚPATTERNrrÚpatternÚ pattern_tree)rÚPCs rrzBaseFix.compile_pattern;sS€ð Œ<Ð #Ý Ñ"Ô"ˆBØ.0×.@Ò.@ÀÄØKOð/Añ/Qô/QÑ +ˆDŒL˜$Ô+Ð+Ð+ð $Ð #rcó—||_dS)zOSet the filename. The main refactoring tool should call this. N)Úfilename)rrs rÚ set_filenamezBaseFix.set_filenameFs€ð !ˆŒ ˆ ˆ rcóD—d|i}|j ||¦«o|S)aReturns 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. Únode)rÚmatch©rrÚresultss rrz BaseFix.matchMs*€ð˜4�.ˆØŒ|×!Ò! $¨Ñ0Ô0Ð<°WÐð BØ"ˆDŒNØ ŒH�OŠOÐ0°4´=Ñ@Ñ AÔ AÐ AØ Œ�Š˜Ñ Ô Ð Ð Ð rcóΗ| ¦«}| ¦«}d|_d}| |||fz¦«|r| |¦«dSdS)aWarn 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. ÚzLine %d: could not convert: %sN)Ú get_linenoÚcloneÚprefixr2)rrÚreasonÚlinenoÚ for_outputÚmsgs rÚcannot_convertzBaseFix.cannot_convertzsw€ð—’Ñ"Ô"ˆØ—Z’Z‘\”\ˆ ؈ ÔØ.ˆØ ×Ò˜ ¨ Ð3Ñ3Ñ4Ô4Ð4Ø ð %Ø × Ò ˜VÑ $Ô $Ð $Ð $Ð $ð %ð %rcób—| ¦«}| d||fz¦«dS)zà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. z Line %d: %sN)r5r2)rrr8r9s rÚwarningzBaseFix.warning‰s7€ð—’Ñ"Ô"ˆØ ×Ò˜¨&°&Ð)9Ñ9Ñ:Ô:Ð:Ð:Ð:rcóˆ—|j|_| |¦«tjd¦«|_d|_dS)zî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. rTN)r&rÚ itertoolsÚcountr)r/©rÚtreers rÚ start_treezBaseFix.start_tree“s=€ðœ/ˆŒØ ×Ò˜(Ñ#Ô#Ð#Ý ” qÑ)Ô)ˆŒ ؈Œˆˆrcó—dS)zó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©rBs rÚ finish_treezBaseFix.finish_treeŸs €ð ˆr)r$©N)"Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr rr@rAr)Úsetr&ÚorderÚexplicitÚ run_orderÚ _accept_typeÚkeep_line_orderÚ BM_compatiblerÚpython_symbolsÚsymsrrrrr#r-r2r<r>rDrGrFrrrrs1€€€€€ððð€GØ€GØ€LØ€GØ€H؈iŒo˜aÑ Ô €GØ�‘”€JØ €EØ€HØ€Ià€Lð€Oà€Mð Ô €Dð ð ð ð Qð Qð Qð!ð!ð!ð =ð =ð =ð$ð$ð$ð ð ð ð ð!ð!ð!ð %ð %ð %ð %ð;ð;ð;ð ð ð ð ð ð ð ð rrcó,‡—eZdZdZdZˆfd„Zd„ZˆxZS)ÚConditionalFixz@ Base class for fixers which not execute if an import is found. NcóP•—tt|¦«j|Žd|_dSrH)ÚsuperrWrDÚ _should_skip)rÚargsÚ __class__s €rrDzConditionalFix.start_tree¯s+ø€Ø.��n˜dÑ#Ô#Ô.°Ð5Ð5Ø ˆÔÐÐrcóÖ—|j�|jS|j d¦«}|d}d |dd…¦«}t |||¦«|_|jS)Nú.éÿÿÿÿ)rZÚskip_onÚsplitÚjoinr)rrÚpkgr,s rÚ should_skipzConditionalFix.should_skip³sh€Ø Ô Ð (ØÔ$Ð $ØŒl× Ò  Ñ%Ô%ˆØ�2ŒwˆØ�hŠh�s˜3˜B˜3”xÑ Ô ˆÝ,¨S°$¸Ñ=Ô=ˆÔØÔ Ð r)rIrJrKrLr`rDrdÚ __classcell__)r\s@rrWrW©sTø€€€€€ØJÐJð€Gð!ð!ð!ð!ð!ð!ð!ð!ð!ð!ð!ð!rrW) rLr@Úpatcomprr4rÚ fixer_utilrÚobjectrrWrFrrúrisºðð9Ð8ðÐÐÐð%Ð$Ð$Ð$Ð$Ð$ØÐÐÐÐÐØ(Ð(Ð(Ð(Ð(Ð(ðX ðX ðX ðX ðX ˆfñX ôX ðX ðv!ð!ð!ð!ð!�Wñ!ô!ð!ð!ð!r