Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib2to3/fixes/fix_sys_exc.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@sgdZddlmZddlmZmZmZmZmZm	Z	m
Z
dejfd��YZdS(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
|��ttj
|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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.