mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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
|
import tempfile
|
||||||
tf = tempfile.NamedTemporaryFile()
|
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.flush()
|
||||||
tf.seek(0)
|
tf.seek(0)
|
||||||
|
|
||||||
|
@ -830,7 +830,7 @@ class FaqWizard:
|
||||||
print '<PRE>%s</PRE>' % escape(output)
|
print '<PRE>%s</PRE>' % escape(output)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.unlink(tfn)
|
os.unlink(tf.name)
|
||||||
except os.error:
|
except os.error:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue