New submission from Jeff McNeil <j...@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@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12890>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to