]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Bug #945063 backport] Get file extension correct.
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 6 May 2004 13:18:26 +0000 (13:18 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 6 May 2004 13:18:26 +0000 (13:18 +0000)
Lib/cgitb.py

index cd469adb48f7083c96b15cc8e44217cafd80abaa..1f03da7154e806bb6d7b2ee35943c3eedf1ce364 100644 (file)
@@ -273,7 +273,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')