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.

classification
Title: cgitb has backwards logic on log file creation
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, dyoo
Priority: normal Keywords:

Created on 2004-04-30 05:23 by dyoo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20651 - (view) Author: Danny Yoo (dyoo) Date: 2004-04-30 05:23
In Python 2.3.3, the cgitb module has some strange logic on line 
276:

    suffix = ['.html', '.txt'][self.format=="html"]

This looks incorrect; the corrected code should be:

    suffix = ['.txt', '.html'][self.format=='html']


Slightly discussed on Python-tutor:

    http://mail.python.org/pipermail/tutor/2004-April/029447.html
    http://mail.python.org/pipermail/tutor/2004-April/029455.html
msg20652 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2004-05-06 13:20
Logged In: YES 
user_id=11375

Verified and fixed in CVS, both the 2.4 HEAD and the 2.3
maintenance branch.  Thanks!

History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40202
2004-04-30 05:23:53dyoocreate