diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 05:31:31 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 05:31:31 (GMT) |
commit | 4fba4521e836e0cab08316592392b1e4d06eb6ef (patch) | |
tree | 5201fccb0f7fc58173de28f0095e10812c830b89 /Tools | |
parent | 6920e49e7eded412b8c49ed998e6422914c501ab (diff) | |
download | cpython-4fba4521e836e0cab08316592392b1e4d06eb6ef.zip cpython-4fba4521e836e0cab08316592392b1e4d06eb6ef.tar.gz cpython-4fba4521e836e0cab08316592392b1e4d06eb6ef.tar.bz2 |
WTF is with this script? It contained illegal syntax and illegal
indentation -- it could never have been run, under any version of Python.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/texi2html.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Tools/scripts/texi2html.py b/Tools/scripts/texi2html.py index 1d9a21a..3ecaee6 100755 --- a/Tools/scripts/texi2html.py +++ b/Tools/scripts/texi2html.py @@ -806,7 +806,7 @@ class TexinfoParser: # if self.savetext <> None: # print '*** Recursive footnote -- expect weirdness' id = len(self.footnotes) + 1 - self.write(self.FN_SOURCE_PATTERN % {'id': repr(id)) + self.write(self.FN_SOURCE_PATTERN % {'id': repr(id)}) self.startsaving() def close_footnote(self): @@ -1857,7 +1857,7 @@ class HTMLHelp: def dumpnodes(self, outfile=sys.stdout): self.dumped = {} if self.nodelist: - (nodename,None,None,None,None) = self.nodelist[0] + nodename, dummy, dummy, dummy, dummy = self.nodelist[0] self.topnode = nodename print>>outfile, '<UL>' @@ -2056,16 +2056,16 @@ def test(): file = sys.argv[1] dirname = sys.argv[2] parser.setdirname(dirname) - parser.setincludedir(os.path.dirname(file)) + 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) + try: + fp = open(file, 'r') + except IOError, msg: + print file, ':', msg + sys.exit(1) parser.parse(fp) fp.close() |