[Python-checkins] CVS: python/nondist/peps pep2html.py,1.30,1.31

M.-A. Lemburg lemburg@users.sourceforge.net
2002年2月16日 02:44:36 -0800


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv3767
Modified Files:
	pep2html.py 
Log Message:
Fix for the case when no PEP title is given.
Index: pep2html.py
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep2html.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** pep2html.py	4 Feb 2002 22:38:27 -0000	1.30
--- pep2html.py	16 Feb 2002 10:44:32 -0000	1.31
***************
*** 140,144 ****
 if basename <> 'pep-0000.txt':
 print >> fo, '[<b><a href=".">index</a></b>]'
! print >> fo, '[<b><a href="pep-%04d.txt">PEP source</a></b>]' % int(pep)
 print >> fo, '</div>'
 print >> fo, '<div class="header">\n<table border="0">'
--- 140,145 ----
 if basename <> 'pep-0000.txt':
 print >> fo, '[<b><a href=".">index</a></b>]'
! if pep:
! print >> fo, '[<b><a href="pep-%04d.txt">PEP source</a></b>]' % int(pep)
 print >> fo, '</div>'
 print >> fo, '<div class="header">\n<table border="0">'

AltStyle によって変換されたページ (->オリジナル) /