mirror of
https://github.com/python/cpython.git
synced 2024-11-26 11:24:40 +08:00
Use string methods. Organize the imports in Python Normal Form.
This commit is contained in:
parent
4fe904d3d6
commit
06912b7702
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user