Wc d ddlmZddlmZmZmZmZmZmZm Z GddejZ dS)) fixer_base)AttrCallNameNumber SubscriptNodesymscZeZdZgdZdZddj deDzZdZdS) FixSysExc)exc_type exc_value exc_tracebackTzN power< 'sys' trailer< dot='.' attribute=(%s) > > |c#"K|] }d|z dS)z'%s'N).0es 2/usr/lib64/python3.12/lib2to3/fixes/fix_sys_exc.py zFixSysExc.s"::AVaZZZZZ::c|dd}t|jj|j}t t d|j }tt d|}|dj |djd_|jt|ttj||j S)N attributeexc_info)prefixsysdot)rrindexvaluerrrrchildrenappendrr r power)selfnoderesultssys_attrr callattrs r transformzFixSysExc.transforms;'*t}}**8>>:;D$X__==DK&%,U^%:%:Q" Ie$%%DJJT[[999rN)__name__ __module__ __qualname__r BM_compatiblejoinPATTERNr+rrrr r sW999HMHH:::::;G:::::rr N) r fixer_utilrrrrrr r BaseFixr rrrr5sHHHHHHHHHHHHHHHHHH::::: ""::::r