U if* @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)symsgettypeZargumentZchildrenvaluerZclonerNAMEZatomZpower DOUBLESTARrrZLeafSTARextendrr) selfZnodeZresultsrr r r rZ l_newargsr s