summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkmodindex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-12 15:30:22 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-12 15:30:22 (GMT)
commitb258bedb138587a30e13bac378b5a00ea5e4c7bf (patch)
tree14d70756acabe28eb2a6e0ac67ab8b1ae1348411 /Doc/tools/mkmodindex
parent90f22fee6bbd577c6d1d9206a143c006e1fe3d6b (diff)
downloadcpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.zip
cpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.tar.gz
cpython-b258bedb138587a30e13bac378b5a00ea5e4c7bf.tar.bz2
Jon Nelson <jnelson@users.sourceforge.net>:
Make the documentation tools compatibile with Python 2.0.
Diffstat (limited to 'Doc/tools/mkmodindex')
-rwxr-xr-xDoc/tools/mkmodindex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tools/mkmodindex b/Doc/tools/mkmodindex
index 3bc4b95..b0211a7 100755
--- a/Doc/tools/mkmodindex
+++ b/Doc/tools/mkmodindex
@@ -117,9 +117,9 @@ def main():
html = string.join(parts, '')
program = os.path.basename(sys.argv[0])
fp = options.get_output_file()
- print >>fp, html.rstrip()
+ fp.write(string.rstrip(html) + "\n")
if options.outputfile == "-":
- print >>sys.stderr, "%s: %d index nodes" % (program, num_nodes)
+ sys.stderr.write("%s: %d index nodes\n" % (program, num_nodes))
else:
print
print "%s: %d index nodes" % (program, num_nodes)