From e6e77e5fe74289af8afe653ea426bcf966afff89 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Sat, 7 Aug 2004 21:13:46 +0000 Subject: Fix [ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py with help from jlgijsbers on #python-dev IRC. --- Tools/faqwiz/faqwiz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py index 00cc65c..bdd270c 100644 --- a/Tools/faqwiz/faqwiz.py +++ b/Tools/faqwiz/faqwiz.py @@ -808,7 +808,7 @@ class FaqWizard: import tempfile tf = tempfile.NamedTemporaryFile() - emit(LOGHEADER, self.ui, os.environ, date=date, _file=tfn) + emit(LOGHEADER, self.ui, os.environ, date=date, _file=tf) tf.flush() tf.seek(0) @@ -830,7 +830,7 @@ class FaqWizard: print '
%s
' % escape(output) try: - os.unlink(tfn) + os.unlink(tf.name) except os.error: pass -- cgit v0.12