commit | 0146f419b45b6a97bfa13d9cb62f9da8d4343027 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Dec 31 01:08:35 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Dec 31 01:08:35 2002 +0000 |
tree | 1e67682a5f8b9a52e61ca5bcfceb425bd2a7e2ef | |
parent | 7b8e35ed7d8564a977c1600d452ec6e323c6997a [diff] |
Fix name error, found by pychecker.
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 @@ 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')