From: Guido van Rossum <guido@python.org>
Date: Tue, 31 Dec 2002 01:08:35 +0000 (+0000)
Subject: Fix name error, found by pychecker.
X-Git-Tag: v2.3c1~2763
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0146f419b45b6a97bfa13d9cb62f9da8d4343027;p=python

Fix name error, found by pychecker.
---

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')