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

Skip to content

Commit 0eb1054

Browse files
committed
Minor fix to gen_gallery to ensure multiprocessing code path works
svn path=/trunk/matplotlib/; revision=7768
1 parent 8e15579 commit 0eb1054

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doc/sphinxext/gen_gallery.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def gen_gallery(app, doctree):
110110
app.builder.info("generating thumbnails... ", nonl=True)
111111
pool = multiprocessing.Pool()
112112
pool.map(make_thumbnail, thumbnails.iteritems())
113+
pool.close()
114+
pool.join()
113115
app.builder.info("done")
114116

115117
except ImportError:

0 commit comments

Comments
 (0)