From: Michael W. Hudson Date: Sat, 7 Aug 2004 21:13:46 +0000 (+0000) Subject: Fix X-Git-Tag: v2.4a3~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6e77e5fe74289af8afe653ea426bcf966afff89;p=python Fix [ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py with help from jlgijsbers on #python-dev IRC. --- diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py index 00cc65c472..bdd270c380 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