]> granicus.if.org Git - python/commitdiff
Use string methods. Organize the imports in Python Normal Form.
authorFred Drake <fdrake@acm.org>
Wed, 16 Oct 2002 15:29:07 +0000 (15:29 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 16 Oct 2002 15:29:07 +0000 (15:29 +0000)
Doc/tools/mkmodindex

index 58ba05e3dfe832284d2b43fb5c35070ddaf1a6a0..7d5c682022c283b045837b9951fa40bf760f2654 100755 (executable)
@@ -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: