diff options
author | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-10-16 15:30:17 (GMT) |
commit | 071972e426c9782611bd5b66f036d35d809f7ee4 (patch) | |
tree | ec6f4f3a441a7365759dd13566c334b3d03ad97f /Doc/tools/buildindex.py | |
parent | 06912b7702e46a1a31749b31911be4d44ccbdf27 (diff) | |
download | cpython-071972e426c9782611bd5b66f036d35d809f7ee4.zip cpython-071972e426c9782611bd5b66f036d35d809f7ee4.tar.gz cpython-071972e426c9782611bd5b66f036d35d809f7ee4.tar.bz2 |
Use string methods.
Diffstat (limited to 'Doc/tools/buildindex.py')
-rwxr-xr-x | Doc/tools/buildindex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tools/buildindex.py b/Doc/tools/buildindex.py index b40bd52..08fdb7b 100755 --- a/Doc/tools/buildindex.py +++ b/Doc/tools/buildindex.py @@ -2,7 +2,7 @@ __version__ = '$Revision$' -import os +import os.path import re import string import sys @@ -49,7 +49,7 @@ class Node: def dump(self): return "%s\1%s###%s\n" \ - % (string.join(self.links, "\1"), + % ("\1".join(self.links), bang_join(self.text), self.seqno) @@ -294,7 +294,7 @@ def format_html_letters(nodes, columns, group_symbol_nodes): for letter, nodes in letter_groups: s = "<b><a href=\"#letter-%s\">%s</a></b>" % (letter, letter) items.append(s) - s = ["<hr><center>\n%s</center>\n" % string.join(items, " |\n")] + s = ["<hr><center>\n%s</center>\n" % " |\n".join(items)] for letter, nodes in letter_groups: s.append(format_letter(letter)) s.append(format_nodes(nodes, columns)) |