]> granicus.if.org Git - python/commitdiff
Fix name error, found by pychecker.
authorGuido van Rossum <guido@python.org>
Tue, 31 Dec 2002 01:08:35 +0000 (01:08 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 31 Dec 2002 01:08:35 +0000 (01:08 +0000)
Lib/cgitb.py

index 2602d57e7bc5fbf4c02103084cde72f1fd8a0315..200e8eea6ef1245229782f1e7c27eb3ac4315337 100644 (file)
@@ -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')