This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcjeff
Recipients mcjeff
Date 2011-09-03.02:21:59
SpamBayes Score 0.00018296708
Marked as misclassified No
Message-id <1315016521.13.0.175763253408.issue12890@psf.upfronthosting.co.za>
In-reply-to
Content
If cgitb.enable is ran with a logdir set and a format='text' argument, then a trailing message is printed that includes <p> tags.  This should only happen if the format requested is HTML.

The following tiny script shows the problem:

import cgitb
cgitb.enable(format='text', logdir='/tmp')
1/0

Attaching a small patch which addresses. This is against tip on the default branch.

mcjeff@macbook:~/cpython$ ./python.exe --version
Python 3.3.0a0
History
Date User Action Args
2011-09-03 02:22:01mcjeffsetrecipients: + mcjeff
2011-09-03 02:22:01mcjeffsetmessageid: <1315016521.13.0.175763253408.issue12890@psf.upfronthosting.co.za>
2011-09-03 02:22:00mcjefflinkissue12890 messages
2011-09-03 02:22:00mcjeffcreate