403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/lib2to3/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/lib2to3/fixes/fix_raise.pyc
ó
—|_c@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/lib/python2.7/lib2to3/fixes/fix_raise.pyt	transform&s@	!,			!%"(t__name__t
__module__tTruet
BM_compatibletPATTERNR!(((s-/usr/lib/python2.7/lib2to3/fixes/fix_raise.pyRsN(t__doc__tRtpgen2RRt
fixer_utilRRRRRtBaseFixR(((s-/usr/lib/python2.7/lib2to3/fixes/fix_raise.pyt<module>s
(

Youez - 2016 - github.com/yon3zu
LinuXploit