From 9d8d866a2a3a765473a19809010952b9648fec20 2013-04-24 04:06:01 From: Min RK Date: 2013-04-24 04:06:01 Subject: [PATCH] Merge pull request #3211 from takluyver/sphinx-xfileref-removed Fix inheritance_diagram Sphinx extension for Sphinx 1.2 --- diff --git a/docs/sphinxext/inheritance_diagram.py b/docs/sphinxext/inheritance_diagram.py index c390f4e..4515dfe 100644 --- a/docs/sphinxext/inheritance_diagram.py +++ b/docs/sphinxext/inheritance_diagram.py @@ -40,7 +40,9 @@ except ImportError: from docutils.nodes import Body, Element from docutils.parsers.rst import directives -from sphinx.roles import xfileref_role +from sphinx.roles import XRefRole + +xfileref_role = XRefRole() def my_import(name): """Module importer - taken from the python documentation.