U AT^* c@sNddlmZddlmZddlmZddlmZmZmZGdddej Z dS)i)pytree)token) fixer_base)CallComma parenthesizec@seZdZdZdZddZdS)FixApplyTa. power< 'apply' trailer< '(' arglist< (not argument ')' > > c Cs,|j}|d}|d}|d}|rF|j|jjkrF|jdjdkrFdS|rl|j|jjkrl|jdjdkrldS|j}|}|jtj |j fkr|j|j ks|jdjtj krt |}d|_|}d|_|dk r|}d|_ttjd |g}|dk r|tttj d|gd |d_t|||d S) Nfuncargskwdsi>***r ir z )prefix)symsZgetZtypeZargumentZchildrenZvaluer ZclonerZNAMEZatomZpowerZ DOUBLESTARrrZLeafZSTARZextendrr) ZselfZnodeZresultsrrrr r Z l_newargsr//usr/lib64/python3.8/lib2to3/fixes/fix_apply.py transformsF     zFixApply.transformN)Z__name__Z __module__Z __qualname__Z BM_compatibleZPATTERNrrrrrrsrN) r rZpgen2rrZ fixer_utilrrrZBaseFixrrrrrZ s