Commit e6e77e5f authored by Michael W. Hudson's avatar Michael W. Hudson

Fix

[ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py

with help from jlgijsbers on #python-dev IRC.
parent 618fbf54
......@@ -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 '<PRE>%s</PRE>' % escape(output)
try:
os.unlink(tfn)
os.unlink(tf.name)
except os.error:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment