Revision: 6028
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6028&view=rev
Author:   mdboom
Date:     2008-08-12 18:36:29 +0000 (Tue, 12 Aug 2008)

Log Message:
-----------
Small bugfix in inheritance_diagram.py

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-08-12 
18:35:53 UTC (rev 6027)
+++ trunk/matplotlib/doc/sphinxext/inheritance_diagram.py       2008-08-12 
18:36:29 UTC (rev 6028)
@@ -81,10 +81,9 @@
             raise ValueError(
                 "Invalid class or module '%s' specified for inheritance 
diagram" % name)
         fullname = (path or '') + base
-        path = path and path.rstrip('.')
+        path = (path and path.rstrip('.'))
         if not path:
-            raise ValueError(
-                "Invalid class or module '%s' specified for inheritance 
diagram" % name)
+            path = base
         try:
             module = __import__(path, None, None, [])
         except ImportError:


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