Mercurial > cpython-lru_cache-weakref
diff Lib/cgitb.py @ 26912:0032dbeec391 legacy-trunk
Fix name error, found by pychecker.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 31 Dec 2002 01:08:35 +0000 |
| parents | 11c701038805 |
| children | d1acf89d1c49 |
line wrap: on
line diff
--- a/Lib/cgitb.py Tue Dec 31 00:06:24 2002 +0000 +++ b/Lib/cgitb.py Tue Dec 31 01:08:35 2002 +0000 @@ -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')
