Skip to content

Commit b237dd9

Browse files
committed
Merged revisions 8917 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8917 | mdboom | 2011-01-14 13:15:33 -0500 (Fri, 14 Jan 2011) | 2 lines Fix doc build with recent versions of Sphinx (reported by Sandro Tosi) ........ svn path=/trunk/matplotlib/; revision=8918
1 parent 18925e5 commit b237dd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _plot_directive(plot_path, basedir, function_name, plot_code, caption,
346346
del options['nofigs']
347347

348348
formats = setup.config.plot_formats
349-
if type(formats) == str:
349+
if isinstance(formats, basestring):
350350
formats = eval(formats)
351351

352352
fname = os.path.basename(plot_path)

0 commit comments

Comments
 (0)