Revision: 5940
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5940&view=rev
Author:   mdboom
Date:     2008-07-31 19:05:30 +0000 (Thu, 31 Jul 2008)

Log Message:
-----------
Fix image maps in inheritance diagrams.

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-31 
18:39:37 UTC (rev 5939)
+++ trunk/matplotlib/doc/sphinxext/inheritance_diagram.py       2008-07-31 
19:05:30 UTC (rev 5940)
@@ -326,10 +326,10 @@
     # Create a mapping from fully-qualified class names to URLs.
     urls = {}
     for child in node:
-        if 'refuri' in child:
-            urls[child['reftitle']] = child['refuri']
-        elif 'refid' in child:
-            urls[child['reftitle']] = '#' + child['refid']
+        if child.get('refuri') is not None:
+            urls[child['reftitle']] = child.get('refuri')
+        elif child.get('refid') is not None:
+            urls[child['reftitle']] = '#' + child.get('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
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to