[issue12890] cgitb displays <p> tags when executed in text mode

Jeff McNeil report at bugs.python.org
Sat Sep 3 04:22:01 CEST 2011


New submission from Jeff McNeil <jeff at jmcneil.net>:

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 at macbook:~/cpython$ ./python.exe --version
Python 3.3.0a0

----------
components: Library (Lib)
files: head-cgitb-display.patch
keywords: patch
messages: 143449
nosy: mcjeff
priority: normal
severity: normal
status: open
title: cgitb displays <p> tags when executed in text mode
versions: Python 3.3
Added file: http://bugs.python.org/file23091/head-cgitb-display.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12890>
_______________________________________


More information about the Python-bugs-list mailing list