/usr/lib64/python3.6/lib2to3/__pycache__
NameSizeModeActions
btm_matcher.cpython-36.opt-1.pyc49340644editdlrm
btm_matcher.cpython-36.opt-2.pyc33630644editdlrm
btm_matcher.cpython-36.pyc49340644editdlrm
btm_utils.cpython-36.opt-1.pyc61330644editdlrm
btm_utils.cpython-36.opt-2.pyc46130644editdlrm
btm_utils.cpython-36.pyc61330644editdlrm
fixer_base.cpython-36.opt-1.pyc62250644editdlrm
fixer_base.cpython-36.opt-2.pyc34640644editdlrm
fixer_base.cpython-36.pyc62250644editdlrm
fixer_util.cpython-36.opt-1.pyc120380644editdlrm
fixer_util.cpython-36.opt-2.pyc98700644editdlrm
fixer_util.cpython-36.pyc120380644editdlrm
main.cpython-36.opt-1.pyc84980644editdlrm
main.cpython-36.opt-2.pyc67430644editdlrm
main.cpython-36.pyc85320644editdlrm
patcomp.cpython-36.opt-1.pyc53570644editdlrm
patcomp.cpython-36.opt-2.pyc48470644editdlrm
patcomp.cpython-36.pyc56040644editdlrm
pygram.cpython-36.opt-1.pyc11780644editdlrm
pygram.cpython-36.opt-2.pyc9730644editdlrm
pygram.cpython-36.pyc11780644editdlrm
pytree.cpython-36.opt-1.pyc244490644editdlrm
pytree.cpython-36.opt-2.pyc150550644editdlrm
pytree.cpython-36.pyc251360644editdlrm
refactor.cpython-36.opt-1.pyc207580644editdlrm
refactor.cpython-36.opt-2.pyc167100644editdlrm
refactor.cpython-36.pyc207910644editdlrm
__init__.cpython-36.opt-1.pyc1230644editdlrm
__init__.cpython-36.opt-2.pyc1230644editdlrm
__init__.cpython-36.pyc1230644editdlrm
__main__.cpython-36.opt-1.pyc2070644editdlrm
__main__.cpython-36.opt-2.pyc2070644editdlrm
__main__.cpython-36.pyc2070644editdlrm
Edit: /usr/lib64/python3.6/lib2to3/__pycache__/btm_matcher.cpython-36.opt-2.pyc (3363B)
3 \@shdZddlZddlZddlmZddlmZddlmZGddde Z Gd d d e Z ia d d Z dS) z+George Boutsioukis N) defaultdict)pytree) reduce_treec@seZdZejZddZdS)BMNodecCs"i|_g|_ttj|_d|_dS)N)transition_tablefixersnextrcountidcontent)selfr+/usr/lib64/python3.6/lib2to3/btm_matcher.py__init__s zBMNode.__init__N)__name__ __module__ __qualname__ itertoolsr rrrrrrsrc@s4eZdZddZddZddZddZd d Zd S) BottomMatchercCs0t|_t|_|jg|_g|_tjd|_dS)NZRefactoringTool) setmatchrrootZnodesr loggingZ getLoggerZlogger)rrrrrs  zBottomMatcher.__init__cCsL|jj|t|j}|j}|j||jd}x|D]}|jj|q4WdS)N)start)r appendrZ pattern_treeZget_linear_subpatternaddr)rfixerZtreeZlinear match_nodesZ match_noderrr add_fixer%s    zBottomMatcher.add_fixercCs|s |gSt|dtrhg}xF|dD]:}|j||d}x&|D]}|j|j|dd|q>Wq&W|S|d|jkrt}||j|d<n|j|d}|ddr|j|dd|d}n|g}|SdS)Nr)rr) isinstancetuplerextendrr)rpatternrr alternativeZ end_nodesendZ next_noderrrr1s" " zBottomMatcher.addc Cs0|j}tt}x|D]}|}x|r&d|_x,|jD]"}t|tjr8|jdkr8d|_Pq8W|j dkrp|j}n|j }||j kr|j |}x|j D]"}||krg||<||j |qWnd|j}|j dk r|j jrP||j kr|j |}x2|j D](}||jkr g||<||j |qW|j }q$WqW|S)NT;Fr)rrlistZ was_checkedZchildrenr!rZLeafvaluetyperr rparentkeys) rZleavesZcurrent_ac_nodeZresultsZleafZcurrent_ast_nodeZchildZ node_tokenrrrrrunSs>          zBottomMatcher.runcs*tdfdd|jtddS)Nz digraph g{cs^xX|jjD]J}|j|}td|j|jt|t|jf|dkrNt|j|q WdS)Nz%d -> %d [label=%s] //%sr)rr,printr type_reprstrr r )ZnodeZ subnode_keyZsubnode) print_noderrr1s  z*BottomMatcher.print_ac..print_node})r.r)rr)r1rprint_acs  zBottomMatcher.print_acN)rrrrr rr-r3rrrrrs  "=rcCsHtss