summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-10-16 15:29:07 (GMT)
committerFred Drake <fdrake@acm.org>2002-10-16 15:29:07 (GMT)
commit06912b7702e46a1a31749b31911be4d44ccbdf27 (patch)
tree8bcfe6a56945294f8771d4aaf8c64bce8706598f /Doc/tools
parent4fe904d3d678834f2b85642f0392080532b59c6a (diff)
downloadcpython-06912b7702e46a1a31749b31911be4d44ccbdf27.zip
cpython-06912b7702e46a1a31749b31911be4d44ccbdf27.tar.gz
cpython-06912b7702e46a1a31749b31911be4d44ccbdf27.tar.bz2
Use string methods. Organize the imports in Python Normal Form.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/mkmodindex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/tools/mkmodindex b/Doc/tools/mkmodindex
index 58ba05e..7d5c682 100755
--- a/Doc/tools/mkmodindex
+++ b/Doc/tools/mkmodindex
@@ -25,13 +25,13 @@ Supported options:
--uptitle str Set the upward link title. The default is 'Python
Documentation Index'.
"""
-import buildindex
import os
import re
-import string
-import support
import sys
+import buildindex
+import support
+
class IndexOptions(support.Options):
aesop_type = "links"
@@ -119,10 +119,10 @@ def main():
]
if has_plat_flag:
parts.insert(1, PLAT_DISCUSS)
- html = string.join(parts, '')
+ html = ''.join(parts)
program = os.path.basename(sys.argv[0])
fp = options.get_output_file()
- fp.write(string.rstrip(html) + "\n")
+ fp.write(html.rstrip() + "\n")
if options.outputfile == "-":
sys.stderr.write("%s: %d index nodes\n" % (program, num_nodes))
else: