Message143449
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 |
|
Date |
User |
Action |
Args |
2011-09-03 02:22:01 | mcjeff | set | recipients:
+ mcjeff |
2011-09-03 02:22:01 | mcjeff | set | messageid: <1315016521.13.0.175763253408.issue12890@psf.upfronthosting.co.za> |
2011-09-03 02:22:00 | mcjeff | link | issue12890 messages |
2011-09-03 02:22:00 | mcjeff | create | |
|