File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,20 +105,10 @@ def gen_gallery(app, doctree):
105105 fh .write (content )
106106 fh .close ()
107107
108- try :
109- import multiprocessing
110- app .builder .info ("generating thumbnails... " , nonl = True )
111- pool = multiprocessing .Pool ()
112- pool .map (make_thumbnail , thumbnails .iteritems ())
113- pool .close ()
114- pool .join ()
115- app .builder .info ("done" )
116-
117- except ImportError :
118- for key in app .builder .status_iterator (
119- thumbnails .iterkeys (), "generating thumbnails... " ,
120- length = len (thumbnails )):
121- image .thumbnail (key , thumbnails [key ], 0.3 )
108+ for key in app .builder .status_iterator (
109+ thumbnails .iterkeys (), "generating thumbnails... " ,
110+ length = len (thumbnails )):
111+ image .thumbnail (key , thumbnails [key ], 0.3 )
122112
123113def setup (app ):
124114 app .connect ('env-updated' , gen_gallery )
You can’t perform that action at this time.
0 commit comments