https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /opt/alt-old/python27/lib/python2.7/site-packages/libfuturize/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt-old/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_raise.pyc
�
�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

https://t.me/AnonymousX5 - 2025