/opt/alt/python38/lib64/python3.8/lib2to3/__pycache__
NameSizeModeActions
btm_matcher.cpython-38.opt-1.pyc48920644editdlrm
btm_matcher.cpython-38.opt-2.pyc33210644editdlrm
btm_matcher.cpython-38.pyc48920644editdlrm
btm_utils.cpython-38.opt-1.pyc61650644editdlrm
btm_utils.cpython-38.opt-2.pyc46530644editdlrm
btm_utils.cpython-38.pyc61650644editdlrm
fixer_base.cpython-38.opt-1.pyc62680644editdlrm
fixer_base.cpython-38.opt-2.pyc35170644editdlrm
fixer_base.cpython-38.pyc62680644editdlrm
fixer_util.cpython-38.opt-1.pyc122130644editdlrm
fixer_util.cpython-38.opt-2.pyc100490644editdlrm
fixer_util.cpython-38.pyc122130644editdlrm
main.cpython-38.opt-1.pyc85890644editdlrm
main.cpython-38.opt-2.pyc68360644editdlrm
main.cpython-38.pyc86230644editdlrm
patcomp.cpython-38.opt-1.pyc54120644editdlrm
patcomp.cpython-38.opt-2.pyc49040644editdlrm
patcomp.cpython-38.pyc56540644editdlrm
pygram.cpython-38.opt-1.pyc12750644editdlrm
pygram.cpython-38.opt-2.pyc10700644editdlrm
pygram.cpython-38.pyc12750644editdlrm
pytree.cpython-38.opt-1.pyc236730644editdlrm
pytree.cpython-38.opt-2.pyc149700644editdlrm
pytree.cpython-38.pyc243570644editdlrm
refactor.cpython-38.opt-1.pyc204220644editdlrm
refactor.cpython-38.opt-2.pyc163760644editdlrm
refactor.cpython-38.pyc204550644editdlrm
__init__.cpython-38.opt-1.pyc1440644editdlrm
__init__.cpython-38.opt-2.pyc1440644editdlrm
__init__.cpython-38.pyc1440644editdlrm
__main__.cpython-38.opt-1.pyc2280644editdlrm
__main__.cpython-38.opt-2.pyc2280644editdlrm
__main__.cpython-38.pyc2280644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/lib2to3/__pycache__/btm_matcher.cpython-38.opt-2.pyc (3321B)
U ,a@shdZddlZddlZddlmZddlmZddlmZGddde Z Gd d d e Z ia d d Z dS) z+George Boutsioukis N) defaultdict)pytree) reduce_treec@seZdZeZddZdS)BMNodecCs"i|_g|_ttj|_d|_dS)N)transition_tablefixersnextrcountidcontentselfr8/opt/alt/python38/lib64/python3.8/lib2to3/btm_matcher.py__init__s zBMNode.__init__N)__name__ __module__ __qualname__ itertoolsr rrrrrrsrc@s4eZdZddZddZddZddZd d Zd S) BottomMatchercCs0t|_t|_|jg|_g|_td|_dS)NZRefactoringTool) setmatchrrootZnodesr loggingZ getLoggerZloggerrrrrrs  zBottomMatcher.__init__cCsH|j|t|j}|}|j||jd}|D]}|j|q2dS)Nstart)r appendrZ pattern_treeZget_linear_subpatternaddr)rfixerZtreeZlinear match_nodesZ match_noderrr add_fixer%s   zBottomMatcher.add_fixerc Cs|s |gSt|dtr`g}|dD]6}|j||d}|D]}|||dd|q:q$|S|d|jkrt}||j|d<n|j|d}|ddr|j|dd|d}n|g}|SdS)Nrrr) isinstancetuplerextendrr)rpatternrr!Z alternativeZ end_nodesendZ next_noderrrr1s"  zBottomMatcher.addc Cs|j}tt}|D]}|}|rd|_|jD]$}t|tjr*|jdkr*d|_qPq*|j dkrb|j}n|j }||j kr|j |}|j D]}|| |qnH|j}|j dk r|j jrq||j kr|j |}|j D]}|| |q|j }qq|S)NT;Fr)rrlistZ was_checkedZchildrenr#rZLeafvaluetyperr rparent) rZleavesZcurrent_ac_nodeZresultsZleafZcurrent_ast_nodeZchildZ node_tokenr rrrrunSs8          zBottomMatcher.runcs*tdfdd|jtddS)Nz digraph g{csZ|jD]J}|j|}td|j|jt|t|jf|dkrLt|j|q dS)Nz%d -> %d [label=%s] //%sr)rkeysprintr type_reprstrr r )ZnodeZ subnode_keyZsubnode print_noderrr3s  z*BottomMatcher.print_ac..print_node})r/rrrr2rprint_acs  zBottomMatcher.print_acN)rrrrr"rr-r5rrrrrs  "8rcCsDts8ddlm}|jD]\}}t|tkr|t|<qt||S)Nr)python_symbols) _type_reprsZpygramr6__dict__itemsr+int setdefault)Ztype_numr6namevalrrrr0s   r0) __author__rr collectionsrrrZ btm_utilsrobjectrrr7r0rrrrs