From 0146f419b45b6a97bfa13d9cb62f9da8d4343027 Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Tue, 31 Dec 2002 01:08:35 +0000
Subject: [PATCH] Fix name error, found by pychecker.

---
 Lib/cgitb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Lib/cgitb.py b/Lib/cgitb.py
index 2602d57e7b..200e8eea6e 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')
-- 
2.40.0