summaryrefslogtreecommitdiffstats
path: root/Lib/cgitb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cgitb.py')
-rw-r--r--Lib/cgitb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index 2602d57..200e8ee 100644
--- a/Lib/cgitb.py
+++ b/Lib/cgitb.py
@@ -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')