[Bug #945063] Get file extension correct. (2.3 bugfix candidate)

This commit is contained in:
Andrew M. Kuchling 2004-05-06 13:13:44 +00:00
parent 67a521ef69
commit 30633c9a64
1 changed files with 1 additions and 1 deletions

View File

@ -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')