Files
PowerToys/PythonHome/Lib/lib2to3/fixes/fix_throw.pyc

28 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@s{dZddlmZddlmZddlmZddlmZmZm Z m
Z
m Z dej fd<00><00>YZ dS( s<>Fixer for generator.throw(E, V, T).
g.throw(E) -> g.throw(E)
g.throw(E, V) -> g.throw(E(V))
g.throw(E, V, T) -> g.throw(E(V).with_traceback(T))
g.throw("foo"[, V[, T]]) will warn about string exceptions.i(tpytree(ttoken(t
fixer_base(tNametCalltArgListtAttrtis_tupletFixThrowcBseZeZdZd<00>ZRS(s<>
power< any trailer< '.' 'throw' >
trailer< '(' args=arglist< exc=any ',' val=any [',' tb=any] > ')' >
>
|
power< any trailer< '.' 'throw' > trailer< '(' exc=any ')' > >
c CsP|j}|dj<00>}|jtjkr?|j|d<00>dS|jd<00>}|dkr^dS|j<00>}t|<00>r<>g|j dd!D]}|j<00>^q<>}nd|_
|g}|d}d|kr6|dj<00>} d| _
t ||<00>}
t |
t d <00><00>t| g<00>g} |jtj|j| <00><00>n|jt ||<00><00>dS(
Ntexcs+Python 3 does not support string exceptionsuvalii<><69><EFBFBD><EFBFBD>utargsttbuwith_traceback(tsymstclonettypeRtSTRINGtcannot_converttgettNoneRtchildrentprefixRRRRtreplaceRtNodetpower( tselftnodetresultsR R tvaltcR
t
throw_argsR tetwith_tb((s .\Lib\lib2to3\fixes\fix_throw.pyt transforms*    ,  
  %(t__name__t
__module__tTruet BM_compatibletPATTERNR (((s .\Lib\lib2to3\fixes\fix_throw.pyRsN(t__doc__tRtpgen2RRt
fixer_utilRRRRRtBaseFixR(((s .\Lib\lib2to3\fixes\fix_throw.pyt<module>s
(