New submission from aliles:

If cgitb has been enabled to format as text but suppress the display, the 
output is formated as html. (Prefixed with <p>)

 >>> gitb.enable(display=0, format='txt')
 >>> raise ValueError('Oops!')
 <p>A problem occurred in a Python script.

The patch changes the prefix used when display is suppressed based on whether 
output is formatted as html or text. Includes unit tests and documentation 
updates.

----------
components: Library (Lib)
files: p1345523495.diff
keywords: patch
messages: 168735
nosy: aliles, ncoghlan
priority: normal
severity: normal
status: open
title: cgitb prints html for text when display disabled.
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file26941/p1345523495.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15749>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to