mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Fix name error, found by pychecker.
This commit is contained in:
parent
7b8e35ed7d
commit
0146f419b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue