Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/traceback.rst

    r2 r391  
    176176   try:
    177177       lumberjack()
    178    except:
    179        exceptionType, exceptionValue, exceptionTraceback = sys.exc_info()
     178   except IndexError:
     179       exc_type, exc_value, exc_traceback = sys.exc_info()
    180180       print "*** print_tb:"
    181        traceback.print_tb(exceptionTraceback, limit=1, file=sys.stdout)
     181       traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)
    182182       print "*** print_exception:"
    183        traceback.print_exception(exceptionType, exceptionValue, exceptionTraceback,
     183       traceback.print_exception(exc_type, exc_value, exc_traceback,
    184184                                 limit=2, file=sys.stdout)
    185185       print "*** print_exc:"
     
    190190       print formatted_lines[-1]
    191191       print "*** format_exception:"
    192        print repr(traceback.format_exception(exceptionType, exceptionValue,
    193                                              exceptionTraceback))
     192       print repr(traceback.format_exception(exc_type, exc_value,
     193                                             exc_traceback))
    194194       print "*** extract_tb:"
    195        print repr(traceback.extract_tb(exceptionTraceback))
     195       print repr(traceback.extract_tb(exc_traceback))
    196196       print "*** format_tb:"
    197        print repr(traceback.format_tb(exceptionTraceback))
    198        print "*** tb_lineno:", traceback.tb_lineno(exceptionTraceback)
     197       print repr(traceback.format_tb(exc_traceback))
     198       print "*** tb_lineno:", exc_traceback.tb_lineno
    199199
    200200
Note: See TracChangeset for help on using the changeset viewer.