diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:26:41 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2010-08-02 20:26:41 (GMT) |
| commit | b55d36805566c092c11b8e38792c759742cd6a1f (patch) | |
| tree | fbe9279c4c088fd4c9a0ee557ff76494ffe584f7 /Lib/cgitb.py | |
| parent | 507ea2ae1802a97fe3cd88051413219d70cb71e1 (diff) | |
| download | cpython-b55d36805566c092c11b8e38792c759742cd6a1f.zip cpython-b55d36805566c092c11b8e38792c759742cd6a1f.tar.gz cpython-b55d36805566c092c11b8e38792c759742cd6a1f.tar.bz2 | |
Merged revisions 79558 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79558 | florent.xicluna | 2010-04-01 21:17:09 +0300 (Thu, 01 Apr 2010) | 2 lines
#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
........
Diffstat (limited to 'Lib/cgitb.py')
| -rw-r--r-- | Lib/cgitb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py index 19b4149..766d331 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -94,10 +94,10 @@ def scanvars(reader, frame, locals): lasttoken = token return vars -def html((etype, evalue, etb), context=5): +def html(einfo, context=5): """Return a nice HTML document describing a given traceback.""" import os, types, time, traceback, linecache, inspect, pydoc - + etype, evalue, etb = einfo if type(etype) is types.ClassType: etype = etype.__name__ pyver = 'Python ' + sys.version.split()[0] + ': ' + sys.executable @@ -186,10 +186,10 @@ function calls leading up to the error, in the order they occurred.</p>''' ''' % pydoc.html.escape( ''.join(traceback.format_exception(etype, evalue, etb))) -def text((etype, evalue, etb), context=5): +def text(einfo, context=5): """Return a plain text document describing a given traceback.""" import os, types, time, traceback, linecache, inspect, pydoc - + etype, evalue, etb = einfo if type(etype) is types.ClassType: etype = etype.__name__ pyver = 'Python ' + sys.version.split()[0] + ': ' + sys.executable |
