python (3.12.0)

(root)/
lib/
python3.12/
lib2to3/
fixes/
__pycache__/
fix_raise.cpython-312.opt-1.pyc

̑enrdZddlmZddlmZddlmZddlmZmZm	Z	m
Z
mZGddejZ
y)	a[Fixer for 'raise E, V, T'

raise         -> raise
raise E       -> raise E
raise E, V    -> raise E(V)
raise E, V, T -> raise E(V).with_traceback(T)
raise E, None, T -> raise E.with_traceback(T)

raise (((E, E'), E''), E'''), V -> raise E(V)
raise "foo", V, T               -> warns about string exceptions


CAVEATS:
1) "raise E, V" will be incorrectly translated if V is an exception
   instance. The correct Python 3 idiom is

        raise E from V

   but since we can't detect instance-hood by syntax alone and since
   any client code would have to be changed as well, we don't automate
   this.
)pytree)token)
fixer_base)NameCallAttrArgListis_tupleceZdZdZdZdZy)FixRaiseTzB
    raise_stmt< 'raise' exc=any [',' val=any [',' tb=any]] >
    cv|j}|dj}|jtjk(rd}|j||yt
|rHt
|r6|jdjdj}t
|r6d|_d|vr>tj|jtd|g}|j|_|S|dj}t
|r+|jddDcgc]}|j}	}n
d	|_|g}	d
|vr|d
j}
d	|
_|}|jtjk7s|jdk7rt||	}t!|tdt#|
ggz}tj|j$tdg|z}|j|_|Stj|jtdt||	g|j
Scc}w)Nexcz+Python 3 does not support string exceptions valraisetbNonewith_traceback)prefix)symsclonetyperSTRINGcannot_convertr
childrenrrNode
raise_stmtrNAMEvaluerrr	simple_stmt)
selfnoderesultsrrmsgnewrcargsrewith_tbs
             K/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/lib2to3/fixes/fix_raise.py	transformzFixRaise.transform&syyen""$88u||#?Cc*C=3-ll1o..q17793-CJ++dooW
s/CDCCJJen""$C='*||Ab'9:!AGGI:D:CJ5D7?$$&BBIAxx5::%f)<dO1d#345"GG++d..g'0IJCCJJ;;t $W
tC?&*kk3
3);sH6N)__name__
__module____qualname__
BM_compatiblePATTERNr/r.rrsMG43r6rN)__doc__rrpgen2rr
fixer_utilrrrr	r
BaseFixrr5r6r.<module>r;s-2<<;3z!!;3r6