commit | 30633c9a6423459cdd481a6e44954d5933c7842b | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Thu May 06 13:13:44 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Thu May 06 13:13:44 2004 +0000 |
tree | 5d39a12d189bfde2ff4feaad1ce7fdd86340eb9e | |
parent | 67a521ef69655044f771aa925b232b267936fea6 [diff] |
[Bug #945063] Get file extension correct. (2.3 bugfix candidate)
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 @@ 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')