Revision: 5779
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5779&view=rev
Author:   mdboom
Date:     2008-07-17 18:27:36 +0000 (Thu, 17 Jul 2008)

Log Message:
-----------
Minor simplification.

Modified Paths:
--------------
    trunk/matplotlib/doc/sphinxext/inheritance_diagram.py

Modified: trunk/matplotlib/doc/sphinxext/inheritance_diagram.py
===================================================================
--- trunk/matplotlib/doc/sphinxext/inheritance_diagram.py       2008-07-17 
18:27:00 UTC (rev 5778)
+++ trunk/matplotlib/doc/sphinxext/inheritance_diagram.py       2008-07-17 
18:27:36 UTC (rev 5779)
@@ -326,13 +326,10 @@
     # Create a mapping from fully-qualified class names to URLs.
     urls = {}
     for child in node:
-        try:
+        if 'refuri' in child:
             urls[child['reftitle']] = child['refuri']
-        except KeyError:
-            try:
-                urls[child['reftitle']] = '#' + child['refid']
-            except KeyError:
-                pass
+        elif 'refid' in child:
+            urls[child['reftitle']] = '#' + child['refid']
 
     # These arguments to dot will save a PNG file to disk and write
     # an HTML image map to stdout.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to