mirror of
https://github.com/python/cpython
synced 2024-07-21 10:15:53 +00:00
Fix
[ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py with help from jlgijsbers on #python-dev IRC.
This commit is contained in:
parent
618fbf5469
commit
e6e77e5fe7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue