[ python-Bugs-945063 ] cgitb has backwards logic on log file creation

SourceForge.net noreply at sourceforge.net
Fri Apr 30 01:23:53 EDT 2004


Bugs item #945063, was opened at 2004-04-30 05:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=945063&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Danny Yoo (dyoo)
Assigned to: Nobody/Anonymous (nobody)
Summary: cgitb has backwards logic on log file creation

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=945063&group_id=5470



More information about the Python-bugs-list mailing list