Fix inheritance_diagram Sphinx extension for Sphinx 1.2
Merge pull request #3211 from takluyver/sphinx-xfileref-removed

Fix inheritance_diagram Sphinx extension for Sphinx 1.2