aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-05-06 13:13:44 +0000
committerAndrew M. Kuchling <amk@amk.ca>2004-05-06 13:13:44 +0000
commit30633c9a6423459cdd481a6e44954d5933c7842b (patch)
tree5d39a12d189bfde2ff4feaad1ce7fdd86340eb9e /Lib/cgitb.py
parentnote that descriptor objects must be instances of new-style types (diff)
downloadcpython-30633c9a6423459cdd481a6e44954d5933c7842b.tar.gz
cpython-30633c9a6423459cdd481a6e44954d5933c7842b.tar.bz2
cpython-30633c9a6423459cdd481a6e44954d5933c7842b.zip
[Bug #945063] Get file extension correct. (2.3 bugfix candidate)
Diffstat (limited to 'Lib/cgitb.py')
-rw-r--r--Lib/cgitb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index ab4c5986790..c65783f2ebc 100644
--- a/Lib/cgitb.py
+++ b/Lib/cgitb.py
@@ -274,7 +274,7 @@ class Hook:
if self.logdir is not None:
import os, tempfile
- suffix = ['.html', '.txt'][self.format=="html"]
+ suffix = ['.txt', '.html'][self.format=="html"]
(fd, path) = tempfile.mkstemp(suffix=suffix, dir=self.logdir)
try:
file = os.fdopen(fd, 'w')