[Python-checkins] python/dist/src/Doc/tools mkmodindex,1.13,1.14
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Wed, 16 Oct 2002 08:29:11 -0700
- Previous message: [Python-checkins] python/dist/src/Doc/tools buildindex.py,1.12,1.13 indfix.py,1.5,1.6 keywords.py,1.2,1.3 refcounts.py,1.3,1.4 rewrite.py,1.1,1.2 toc2bkm.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Doc/tools support.py,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv27426
Modified Files:
mkmodindex
Log Message:
Use string methods. Organize the imports in Python Normal Form.
Index: mkmodindex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkmodindex,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** mkmodindex 5 Apr 2002 17:34:50 -0000 1.13
--- mkmodindex 16 Oct 2002 15:29:07 -0000 1.14
***************
*** 26,36 ****
Documentation Index'.
"""
- import buildindex
import os
import re
- import string
- import support
import sys
class IndexOptions(support.Options):
--- 26,36 ----
Documentation Index'.
"""
import os
import re
import sys
+ import buildindex
+ import support
+
class IndexOptions(support.Options):
***************
*** 120,127 ****
if has_plat_flag:
parts.insert(1, PLAT_DISCUSS)
! html = string.join(parts, '')
program = os.path.basename(sys.argv[0])
fp = options.get_output_file()
! fp.write(string.rstrip(html) + "\n")
if options.outputfile == "-":
sys.stderr.write("%s: %d index nodes\n" % (program, num_nodes))
--- 120,127 ----
if has_plat_flag:
parts.insert(1, PLAT_DISCUSS)
! html = ''.join(parts)
program = os.path.basename(sys.argv[0])
fp = options.get_output_file()
! fp.write(html.rstrip() + "\n")
if options.outputfile == "-":
sys.stderr.write("%s: %d index nodes\n" % (program, num_nodes))
- Previous message: [Python-checkins] python/dist/src/Doc/tools buildindex.py,1.12,1.13 indfix.py,1.5,1.6 keywords.py,1.2,1.3 refcounts.py,1.3,1.4 rewrite.py,1.1,1.2 toc2bkm.py,1.10,1.11
- Next message: [Python-checkins] python/dist/src/Doc/tools support.py,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]