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

Skip to content

Commit 02680ee

Browse files
committed
Small bugfix in inheritance_diagram.py
svn path=/trunk/matplotlib/; revision=6028
1 parent 7f86b06 commit 02680ee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

doc/sphinxext/inheritance_diagram.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ def _import_class_or_module(self, name):
8181
raise ValueError(
8282
"Invalid class or module '%s' specified for inheritance diagram" % name)
8383
fullname = (path or '') + base
84-
path = path and path.rstrip('.')
84+
path = (path and path.rstrip('.'))
8585
if not path:
86-
raise ValueError(
87-
"Invalid class or module '%s' specified for inheritance diagram" % name)
86+
path = base
8887
try:
8988
module = __import__(path, None, None, [])
9089
except ImportError:

0 commit comments

Comments
 (0)