From: Guido van Rossum 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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0146f419b45b6a97bfa13d9cb62f9da8d4343027;p=thirdparty%2FPython%2Fcpython.git Fix name error, found by pychecker. --- diff --git a/Lib/cgitb.py b/Lib/cgitb.py index 2602d57e7bc5..200e8eea6ef1 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')