Skip to content

Commit

Permalink
Merge pull request #10412 from tk0miya/deprecate_sphinx.util.docutils…
Browse files Browse the repository at this point in the history
….__version_info__

Remove sphinx.util.docutils.__version_info__ on 7.0
  • Loading branch information
tk0miya committed May 5, 2022
2 parents 335bf51 + be212d9 commit 21fb2ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -54,6 +54,7 @@ Deprecated
* The ``language`` argument of ``sphinx.util.i18n:format_date()`` becomes
required
* ``sphinx.builders.html.html5_ready``
* ``sphinx.util.docutils.__version_info__``
* ``sphinx.util.docutils.is_html5_writer_available()``
* ``sphinx.writers.latex.LaTeXWriter.docclasses``

Expand Down
5 changes: 5 additions & 0 deletions doc/extdev/deprecated.rst
Expand Up @@ -47,6 +47,11 @@ The following is a list of deprecated interfaces.
- 7.0
- N/A

* - ``sphinx.util.docutils.__version_info__``
- 5.0
- 7.0
- ``docutils.__version_info__``

* - ``sphinx.util.docutils.is_html5_writer_available()``
- 5.0
- 7.0
Expand Down
5 changes: 2 additions & 3 deletions sphinx/util/docutils.py
Expand Up @@ -19,8 +19,7 @@
from docutils.statemachine import State, StateMachine, StringList
from docutils.utils import Reporter, unescape

from sphinx.deprecation import (RemovedInSphinx60Warning, RemovedInSphinx70Warning,
deprecated_alias)
from sphinx.deprecation import RemovedInSphinx70Warning, deprecated_alias
from sphinx.errors import SphinxError
from sphinx.locale import _, __
from sphinx.util import logging
Expand All @@ -38,7 +37,7 @@
{
'__version_info__': docutils.__version_info__,
},
RemovedInSphinx60Warning,
RemovedInSphinx70Warning,
{
'__version_info__': 'docutils.__version_info__',
})
Expand Down

0 comments on commit 21fb2ca

Please sign in to comment.