%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_raise.pyo

�
�A�[c@sedZddlmZmZddlmZddlmZmZm	Z	dej
fd��YZdS(s�Fixer for 'raise E, V'

From Armin Ronacher's ``python-modernize``.

raise         -> raise
raise E       -> raise E
raise E, V    -> raise E(V)

raise (((E, E'), E''), E'''), V -> raise E(V)


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.
i����(tpytreet
fixer_base(ttoken(tNametCalltis_tupletFixRaisecBseZeZdZd�ZRS(s5
    raise_stmt< 'raise' exc=any [',' val=any] >
    c
CsR|j}|dj�}|jtjkrEd}|j||�dSt|�r�x*t|�r}|jdjdj�}qTWd|_nd|kr�t	j
|jtd�|g�}|j|_|S|dj�}t|�rg|jdd!D]}|j�^q�}	nd	|_|g}	t	j
|jtd�t
||	�gd
|j�S(Ntexcs+Python 3 does not support string exceptionsiiu tvaluraisei����utprefix(tsymstclonettypeRtSTRINGtcannot_convertRtchildrenR	RtNodet
raise_stmtRR(
tselftnodetresultsR
RtmsgtnewRtctargs((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_raise.pyt	transform$s,	!,		(t__name__t
__module__tTruet
BM_compatibletPATTERNR(((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_raise.pyRsN(t__doc__tlib2to3RRt
lib2to3.pgen2Rtlib2to3.fixer_utilRRRtBaseFixR(((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_raise.pyt<module>s

Zerion Mini Shell 1.0