diff --git a/Lib/cgitb.py b/Lib/cgitb.py index cd469adb48f..ab4c5986790 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -146,7 +146,8 @@ function calls leading up to the error, in the order they occurred.''' %s
''' % '\n'.join(rows)) - exception = ['

%s: %s' % (strong(str(etype)), str(evalue))] + exception = ['

%s: %s' % (strong(pydoc.html.escape(str(etype))), + pydoc.html.escape(str(evalue)))] if type(evalue) is types.InstanceType: for name in dir(evalue): if name[:1] == '_': continue