diff --git a/Lib/cgitb.py b/Lib/cgitb.py index 2602d57e7bc..200e8eea6ef 100644 --- a/Lib/cgitb.py +++ b/Lib/cgitb.py @@ -193,7 +193,7 @@ def handle(self, info=None): 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')