mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue