summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/cgitb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index ab4c598..c65783f 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')