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

Skip to content

Commit bcf7d4d

Browse files
committed
Minor simplification.
svn path=/trunk/matplotlib/; revision=5779
1 parent 82f7e81 commit bcf7d4d

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

doc/sphinxext/inheritance_diagram.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +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-
try:
329+
if 'refuri' in child:
330330
urls[child['reftitle']] = child['refuri']
331-
except KeyError:
332-
try:
333-
urls[child['reftitle']] = '#' + child['refid']
334-
except KeyError:
335-
pass
331+
elif 'refid' in child:
332+
urls[child['reftitle']] = '#' + child['refid']
336333

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

0 commit comments

Comments
 (0)