[Python-checkins] python/dist/src/Tools/scripts texi2html.py, 1.16, 1.17

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Sun Jul 18 07:31:33 CEST 2004


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26240
Modified Files:
	texi2html.py 
Log Message:
WTF is with this script? It contained illegal syntax and illegal
indentation -- it could never have been run, under any version of Python.
Index: texi2html.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/texi2html.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** texi2html.py	12 Feb 2004 17:35:32 -0000	1.16
--- texi2html.py	18 Jul 2004 05:31:31 -0000	1.17
***************
*** 807,811 ****
 # print '*** Recursive footnote -- expect weirdness'
 id = len(self.footnotes) + 1
! self.write(self.FN_SOURCE_PATTERN % {'id': repr(id))
 self.startsaving()
 
--- 807,811 ----
 # print '*** Recursive footnote -- expect weirdness'
 id = len(self.footnotes) + 1
! self.write(self.FN_SOURCE_PATTERN % {'id': repr(id)})
 self.startsaving()
 
***************
*** 1858,1862 ****
 self.dumped = {}
 if self.nodelist:
! (nodename,None,None,None,None) = self.nodelist[0]
 self.topnode = nodename
 
--- 1858,1862 ----
 self.dumped = {}
 if self.nodelist:
! nodename, dummy, dummy, dummy, dummy = self.nodelist[0]
 self.topnode = nodename
 
***************
*** 2057,2070 ****
 dirname = sys.argv[2]
 parser.setdirname(dirname)
! parser.setincludedir(os.path.dirname(file))
 
 htmlhelp = HTMLHelp(helpbase, dirname)
 parser.sethtmlhelp(htmlhelp)
 
! try:
! fp = open(file, 'r')
! except IOError, msg:
! print file, ':', msg
! sys.exit(1)
 
 parser.parse(fp)
--- 2057,2070 ----
 dirname = sys.argv[2]
 parser.setdirname(dirname)
! parser.setincludedir(os.path.dirname(file))
 
 htmlhelp = HTMLHelp(helpbase, dirname)
 parser.sethtmlhelp(htmlhelp)
 
! try:
! fp = open(file, 'r')
! except IOError, msg:
! print file, ':', msg
! sys.exit(1)
 
 parser.parse(fp)


More information about the Python-checkins mailing list

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