mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Add compatibility code for different locations of Sphinx NoUri
The location of this exception has changed with Sphinx 3.0 according to the "Deprecated API".
This commit is contained in:
@@ -10,7 +10,10 @@ and lists them along with a backlink to the original location.
|
||||
from docutils import nodes
|
||||
|
||||
from sphinx.locale import _
|
||||
from sphinx.environment import NoUri
|
||||
try:
|
||||
from sphinx.errors import NoUri # since Sphinx 3.0
|
||||
except ImportError:
|
||||
from sphinx.environment import NoUri # till Sphinx 3.0
|
||||
from sphinx.util.nodes import set_source_info
|
||||
from docutils.parsers.rst import Directive
|
||||
|
||||
|
||||
Reference in New Issue
Block a user