ó ™ö7ec@sodZddlmZddlmZddlmZddlmZmZm Z dej fd„ƒYZ dS( sIFixer for apply(). This converts apply(func, v, k) into (func)(*v, **k).i(tpytree(ttoken(t fixer_base(tCalltCommat parenthesizetFixApplycBseZeZdZd„ZRS(s. power< 'apply' trailer< '(' arglist< (not argument ')' > > c CsÐ|j}|d}|d}|jdƒ}|r}|j|jjkrKdS|j|jjkr}|jdjdkr}dSn|r²|j|jjkr²|jdjdkr²dS|j}|jƒ}|jt j |j fkr|j|j ks |jdjt j krt|ƒ}nd|_|jƒ}d|_|dk r^|jƒ}d|_ntjt jdƒ|g}|dk r½|jtƒtjt j d ƒ|gƒd |d_nt||d |ƒS( Ntfunctargstkwdsis**iþÿÿÿtu*u**u tprefix(tsymstgetttypet star_exprtargumenttchildrentvalueR tcloneRtNAMEtatomtpowert DOUBLESTARRtNoneRtLeaftSTARtextendRR( tselftnodetresultsR RRR R t l_newargs((s//usr/lib64/python2.7/lib2to3/fixes/fix_apply.pyt transforms@              (t__name__t __module__tTruet BM_compatibletPATTERNR (((s//usr/lib64/python2.7/lib2to3/fixes/fix_apply.pyRsN( t__doc__R Rtpgen2RRt fixer_utilRRRtBaseFixR(((s//usr/lib64/python2.7/lib2to3/fixes/fix_apply.pyts