[Python-checkins] python/dist/src/Lib cgitb.py,1.9,1.9.8.1
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Thu May 6 09:18:45 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23840
Modified Files:
Tag: release23-maint
cgitb.py
Log Message:
[Bug #945063 backport] Get file extension correct.
Index: cgitb.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cgitb.py,v
retrieving revision 1.9
retrieving revision 1.9.8.1
diff -C2 -d -r1.9 -r1.9.8.1
*** cgitb.py 29 Jun 2003 05:46:53 -0000 1.9
--- cgitb.py 6 May 2004 13:18:26 -0000 1.9.8.1
***************
*** 274,278 ****
if self.logdir is not None:
import os, tempfile
! suffix = ['.html', '.txt'][self.format=="html"]
(fd, path) = tempfile.mkstemp(suffix=suffix, dir=self.logdir)
try:
--- 274,278 ----
if self.logdir is not None:
import os, tempfile
! suffix = ['.txt', '.html'][self.format=="html"]
(fd, path) = tempfile.mkstemp(suffix=suffix, dir=self.logdir)
try:
More information about the Python-checkins
mailing list