From d532acd6ba6e8c7e5c9d62611253601d01659501 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Thu, 6 May 2004 13:18:26 +0000 Subject: [PATCH] [Bug #945063 backport] Get file extension correct. --- Lib/cgitb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cgitb.py b/Lib/cgitb.py index cd469adb48f7..1f03da7154e8 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -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') -- 2.47.3