[Python-checkins] python/dist/src/Tools/faqwiz faqwiz.py,1.30,1.31
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Sat Aug 7 23:13:49 CEST 2004
Update of /cvsroot/python/python/dist/src/Tools/faqwiz
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24243
Modified Files:
faqwiz.py
Log Message:
Fix
[ 777659 ] Uninitialized variable used in Tools/faqwiz/faqwiz.py
with help from jlgijsbers on #python-dev IRC.
Index: faqwiz.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/faqwiz/faqwiz.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** faqwiz.py 18 Jul 2004 06:02:02 -0000 1.30
--- faqwiz.py 7 Aug 2004 21:13:46 -0000 1.31
***************
*** 809,813 ****
import tempfile
tf = tempfile.NamedTemporaryFile()
! emit(LOGHEADER, self.ui, os.environ, date=date, _file=tfn)
tf.flush()
tf.seek(0)
--- 809,813 ----
import tempfile
tf = tempfile.NamedTemporaryFile()
! emit(LOGHEADER, self.ui, os.environ, date=date, _file=tf)
tf.flush()
tf.seek(0)
***************
*** 831,835 ****
try:
! os.unlink(tfn)
except os.error:
pass
--- 831,835 ----
try:
! os.unlink(tf.name)
except os.error:
pass
More information about the Python-checkins
mailing list