From 30633c9a6423459cdd481a6e44954d5933c7842b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Thu, 6 May 2004 13:13:44 +0000 Subject: [Bug #945063] Get file extension correct. (2.3 bugfix candidate) --- Lib/cgitb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- cgit v0.12