Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 394af69

Browse files
committed
Make gen_rst.py quieter
svn path=/trunk/matplotlib/; revision=6750
1 parent d791810 commit 394af69

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

doc/sphinxext/gen_rst.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def generate_example_rst(app):
9696
9797
"""%(subdir, subdir))
9898

99-
print subdir
99+
sys.stdout.write(subdir + ", ")
100+
sys.stdout.flush()
100101

101102
data = datad[subdir]
102103
data.sort()
@@ -116,8 +117,6 @@ def generate_example_rst(app):
116117
not out_of_date(fullpath, outrstfile)):
117118
continue
118119

119-
print ' %s'%fname
120-
121120
fh = file(outrstfile, 'w')
122121
fh.write('.. _%s-%s:\n\n'%(subdir, basename))
123122
title = '%s example code: %s'%(subdir, fname)
@@ -151,5 +150,7 @@ def generate_example_rst(app):
151150

152151
fhindex.close()
153152

153+
print
154+
154155
def setup(app):
155156
app.connect('builder-inited', generate_example_rst)

0 commit comments

Comments
 (0)