summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-07 21:13:46 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-07 21:13:46 (GMT)
commite6e77e5fe74289af8afe653ea426bcf966afff89 (patch)
treefa5a4284a9a06e2bffc377214b010d6ef4e09d9d /Tools
parent618fbf5469ec6b8013b00989623763db21dd0ce5 (diff)
downloadcpython-e6e77e5fe74289af8afe653ea426bcf966afff89.zip
cpython-e6e77e5fe74289af8afe653ea426bcf966afff89.tar.gz
cpython-e6e77e5fe74289af8afe653ea426bcf966afff89.tar.bz2
Fix
[ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py with help from jlgijsbers on #python-dev IRC.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/faqwiz/faqwiz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/faqwiz/faqwiz.py b/Tools/faqwiz/faqwiz.py
index 00cc65c..bdd270c 100644
--- a/Tools/faqwiz/faqwiz.py
+++ b/Tools/faqwiz/faqwiz.py
@@ -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