Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 566c832 commit 03a0235Copy full SHA for 03a0235
1 file changed
Doc/tools/buildindex.py
@@ -1,9 +1,8 @@
1
#! /usr/bin/env python
2
3
-"""
4
5
__version__ = '$Revision$'
6
+import os
7
import re
8
import string
9
import sys
@@ -307,16 +306,21 @@ def main():
307
306
nodes = []
308
for fn in args:
309
nodes = nodes + load(open(fn))
+ num_nodes = len(nodes)
310
nodes.sort()
311
collapse(nodes)
312
if letters:
313
html = format_html_letters(nodes, columns)
314
else:
315
html = format_html(nodes, columns)
316
+ program = os.path.basename(sys.argv[0])
317
if ofn == "-":
318
sys.stdout.write(html)
319
+ sys.stderr.write("\n%s: %d index nodes" % (program, num_nodes))
320
321
open(ofn, "w").write(html)
322
+ print
323
+ print "%s: %d index nodes" % (program, num_nodes)
324
325
326
if __name__ == "__main__":
0 commit comments