U AT^* @sNddlmZddlmZddlmZddlmZmZmZGdddej Z dS))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) Nfuncargskwds>***r r )prefix)symsgettypeargumentZchildrenvaluerZclonerNAMEZatomZpower DOUBLESTARrrZLeafSTARextendrr) selfZnoderesultsrr r r rZ l_newargsr//usr/lib64/python3.8/lib2to3/fixes/fix_apply.py transformsF     zFixApply.transformN)__name__ __module__ __qualname__Z BM_compatibleZPATTERNr rrrrrsrN) rrZpgen2rrZ fixer_utilrrrZBaseFixrrrrr s