Fix name error, found by pychecker.

This commit is contained in:
Guido van Rossum 2002-12-31 01:08:35 +00:00
parent 7b8e35ed7d
commit 0146f419b4
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ class Hook:
if self.logdir is not None:
import os, tempfile
(fd, name) = tempfile.mkstemp(suffix=['.html', '.txt'][text],
(fd, path) = tempfile.mkstemp(suffix=['.html', '.txt'][text],
dir=self.logdir)
try:
file = os.fdopen(fd, 'w')