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

Skip to content

Commit a99aef4

Browse files
committed
Merge pull request matplotlib#104 from stefanor/formats-basestring
0.99.x documentation build failure fix (plot_directive formats can be unicode)
2 parents df25e31 + 1b9f6ca commit a99aef4

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
@@ -238,7 +238,7 @@ def plot_directive(name, arguments, options, content, lineno,
238238
Handle the plot directive.
239239
"""
240240
formats = setup.config.plot_formats
241-
if type(formats) == str:
241+
if isinstance(formats, basestring):
242242
formats = eval(formats)
243243

244244
# The user may provide a filename *or* Python code content, but not both

0 commit comments

Comments
 (0)