summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkmodindex
diff options
context:
space:
mode:
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)