mirror of https://github.com/python/cpython
Fix name error, found by pychecker.
This commit is contained in:
parent
7b8e35ed7d
commit
0146f419b4
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue