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

with help from jlgijsbers on #python-dev IRC.
This commit is contained in:
Michael W. Hudson 2004-08-07 21:13:46 +00:00
parent 618fbf5469
commit e6e77e5fe7

View file

@ -808,7 +808,7 @@ def commit(self, entry):
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 @@ def commit(self, entry):
print '<PRE>%s</PRE>' % escape(output)
try:
os.unlink(tfn)
os.unlink(tf.name)
except os.error:
pass