GIF89a; EcchiShell v1.0
//lib64/lib64/lib64/lib64/python2.7/

t|dƒt|||ƒnt||ƒ}x|D]}t||dƒqTWdS(sùPrint exception up to 'limit' stack trace entries from 'tb' to 'file'. This differs from print_tb() in the following ways: (1) if traceback is not None, it prints a header "Traceback (most recent call last):"; (2) it prints the exception type and value after the stack trace; (3) if type is SyntaxError and value has the appropriate format, it prints the line where the syntax error occurred with a caret on the next line indicating the approximate position of the error. s"Traceback (most recent call last):RN(RRRRR R(tetypetvalueR,R-RtlinesR((s!/usr/lib64/python2.7/traceback.pyR ns    cCsB|r%dg}|t||ƒ}ng}|t||ƒ}|S(szFormat a stack trace and the exception information. The arguments have the same meaning as the corresponding arguments to print_exception(). The return value is a list of strings, each ending in a newline and some containing internal newlines. When these lines are concatenated and printed, exactly the same text is printed as does print_exception(). s#Traceback (most recent call last): (RR(R1R2R,R-R((s!/usr/lib64/python2.7/traceback.pyR‚s  c Cskt|tƒs?t|tjƒs?|dks?t|ƒtkrOt||ƒgS|j}t |t ƒswt||ƒgSg}y|j \}\}}}}Wnt k r¯n¢X|p¹d}|j d||fƒ|dk rK|j d|jƒƒ|dk rK|jdƒ| jƒ} d„| Dƒ} |j ddj| ƒƒqKn|}|j t||ƒƒ|S( sFormat the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError exceptions, it contains several lines that (when printed) display detailed information about where the syntax error occurred. The message indicating which exception occurred is always the last string in the list. ss File "%s", line %d s %s s css'|]}|jƒr|pdVqdS(t N(tisspace(t.0tc((s!/usr/lib64/python2.7/traceback.pys Âss %s^ RN(t isinstancet BaseExceptionttypest InstanceTypeRttypeRt_format_final_exc_linet__name__t issubclasst SyntaxErrortargst ExceptionRRtrstriptlstriptjoin( R1R2tstypeR3tmsgRRtoffsettbadlinet caretspace((s!/usr/lib64/python2.7/traceback.pyR“s.      cCs@t|ƒ}|dks| r,d|}nd||f}|S(sGReturn a list of a single line -- normal case for format_exception_onlys%s s%s: %s N(t _some_strR(R1R2tvaluestrR((s!/usr/lib64/python2.7/traceback.pyR=Ês   cCsgyt|ƒSWntk r!nXy t|ƒ}|jddƒSWntk rUnXdt|ƒjS(Ntasciitbackslashreplaces(RRBtunicodetencodeR<R>(R2((s!/usr/lib64/python2.7/traceback.pyRKÓs   cCs]|dkrtj}nz/tjƒ\}}}t|||||ƒWdd}}}XdS(s¾Shorthand for 'print_exception(sys.exc_type, sys.exc_value, sys.exc_traceback, limit, file)'. (In fact, it uses sys.exc_info() to retrieve the same information in a thread-safe way.)N(RRRtexc_infoR (R-RR1R2R,((s!/usr/lib64/python2.7/traceback.pyRàs   cCsKz5tjƒ\}}}djt||||ƒƒSWdd}}}XdS(s%Like print_exc() but return a string.RN(RRQRERR(R-R1R2R,((s!/usr/lib64/python2.7/traceback.pyRís cCsYttdƒstdƒ‚n|dkr6tj}nttjtjtj||ƒdS(snThis is a shorthand for 'print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)'.t last_typesno last exceptionN( R"Rt ValueErrorRRR RRt last_valuetlast_traceback(R-R((s!/usr/lib64/python2.7/traceback.pyR ös   cCs]|dkrCy t‚WqCtk r?tjƒdjj}qCXntt||ƒ|ƒdS(s÷Print a stack trace from its invocation point. The optional 'f' argument can be used to specify an alternate stack frame at which to start. The optional 'limit' and 'file' arguments have the same meaning as for print_exception(). iN(RtZeroDivisionErrorRRQR#tf_backRR(R/R-R((s!/usr/lib64/python2.7/traceback.pyR s    cCsV|dkrCy t‚WqCtk r?tjƒdjj}qCXntt||ƒƒS(s5Shorthand for 'format_list(extract_stack(f, limit))'.iN(RRVRRQR#RWRR(R/R-((s!/usr/lib64/python2.7/traceback.pyRs    c CsB|dkrCy t‚WqCtk r?tjƒdjj}qCXn|dkrmttdƒrmtj}qmng}d}x¸|dk r3|dks ||kr3|j}|j }|j }|j }t j |ƒt j|||jƒ}|rþ|jƒ}nd}|j||||fƒ|j}|d}q|W|jƒ|S(ssExtract the raw traceback from the current stack frame. The return value has the same format as for extract_tb(). The optional 'f' and 'limit' arguments have the same meaning as for print_stack(). Each item in the list is a quadruple (filename, line number, function name, text), and the entries are in order from oldest to newest stack frame. iR!iiN(RRVRRQR#RWR"R!tf_linenoR$R%R&R'R(R)R*RRtreverse( R/R-RR.RR0RRR((s!/usr/lib64/python2.7/traceback.pyRs2    '       cCs|jS(sRCalculate correct line number of traceback given in tb. Obsolete in 2.3. (R (R,((s!/usr/lib64/python2.7/traceback.pyR :s(t__doc__R'RR:t__all__RRRRR RRR RRR=RKRRR R RRR (((s!/usr/lib64/python2.7/traceback.pyts2           7    "