Kaydet (Commit) 30633c9a authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

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

üst 67a521ef
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment