diff --git a/doc/source/redirect.py b/doc/source/redirect.py index 099159f..4400b98 100644 --- a/doc/source/redirect.py +++ b/doc/source/redirect.py @@ -10,8 +10,8 @@ from sphinx.util.console import bold def setup(app): - from sphinx.application import Sphinx - if not isinstance(app, Sphinx): + from sphinx import application + if not isinstance(app, application.Sphinx): return app.connect('build-finished', emit_redirects)