diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-05-06 13:13:44 +0000 |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-05-06 13:13:44 +0000 |
commit | 798f18616e27011c485793d60fab405f23b2cbfd (patch) | |
tree | 644a7e85e08ead13ac5ca2b714b5499cce21fadd /Lib/cgitb.py | |
parent | 455dc2581f4ebaff3e2c539e99ace92162accb06 (diff) | |
download | cpython-798f18616e27011c485793d60fab405f23b2cbfd.tar.gz |
[Bug #945063] Get file extension correct. (2.3 bugfix candidate)
Diffstat (limited to 'Lib/cgitb.py')
-rw-r--r-- | Lib/cgitb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py index ab4c598679..c65783f2eb 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') |