��Qc@sgdZddlmZddlmZmZmZmZmZm Z m
Z
dejfd��YZdS(s�Fixer for sys.exc_{type, value, traceback}
sys.exc_type -> sys.exc_info()[0]
sys.exc_value -> sys.exc_info()[1]
sys.exc_traceback -> sys.exc_info()[2]
i(t
fixer_base(tAttrtCalltNametNumbert SubscripttNodetsymst FixSysExccBsCeZdddgZeZddjd�eD��Zd�ZRS(uexc_typeu exc_valueu
exc_tracebacksN
power< 'sys' trailer< dot='.' attribute=(%s) > >
t|ccs|]}d|VqdS(s'%s'N((t.0te((s//sys/lib/python2.7/lib2to3/fixes/fix_sys_exc.pys <genexpr>scCs�|dd}t|jj|j��}ttd�d|j�}ttd�|�}|dj|djd_|j t
|��ttj
|d|j�S(Nt attributeiuexc_infotprefixusystdoti(Rtexc_infotindextvalueRRR
RtchildrentappendRRRtpower(tselftnodetresultstsys_attrRtcalltattr((s//sys/lib/python2.7/lib2to3/fixes/fix_sys_exc.pyt transforms(t__name__t
__module__RtTruet
BM_compatibletjointPATTERNR(((s//sys/lib/python2.7/lib2to3/fixes/fix_sys_exc.pyRsN(
t__doc__tRt
fixer_utilRRRRRRRtBaseFixR(((s//sys/lib/python2.7/lib2to3/fixes/fix_sys_exc.pyt<module>s4
|