Skip to content

Commit

Permalink
Replace use of sphinx's status_iterator function, which has moved
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo authored and pelson committed May 2, 2018
1 parent 380844e commit 98df0a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/iris/src/sphinxext/gen_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import warnings
import matplotlib.image as image

from sphinx.util import status_iterator

template = '''\
{{% extends "layout.html" %}}
Expand Down Expand Up @@ -193,9 +194,9 @@ def gen_gallery(app, doctree):
with open(gallery_path, 'w') as fh:
fh.write(content)

for key in app.builder.status_iterator(thumbnails,
'generating thumbnails... ',
length=len(thumbnails)):
for key in status_iterator(thumbnails,
'generating thumbnails... ',
length=len(thumbnails)):
image.thumbnail(key, thumbnails[key], 0.3)


Expand Down

0 comments on commit 98df0a9

Please sign in to comment.