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

Skip to content

Commit 6590f0f

Browse files
committed
Fix image maps in inheritance diagrams.
svn path=/trunk/matplotlib/; revision=5940
1 parent 457e662 commit 6590f0f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/sphinxext/inheritance_diagram.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ def html_output_graph(self, node):
326326
# Create a mapping from fully-qualified class names to URLs.
327327
urls = {}
328328
for child in node:
329-
if 'refuri' in child:
330-
urls[child['reftitle']] = child['refuri']
331-
elif 'refid' in child:
332-
urls[child['reftitle']] = '#' + child['refid']
329+
if child.get('refuri') is not None:
330+
urls[child['reftitle']] = child.get('refuri')
331+
elif child.get('refid') is not None:
332+
urls[child['reftitle']] = '#' + child.get('refid')
333333

334334
# These arguments to dot will save a PNG file to disk and write
335335
# an HTML image map to stdout.

0 commit comments

Comments
 (0)