Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 772cdfa

Browse files
authored
Remove sphinx.directives.other.VersionChange (sphinx-doc#12662)
1 parent 57a63ea commit 772cdfa

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Incompatible changes
7474
Patch by Adam Turner.
7575
* #12646: Remove :py:func:`!sphinx.util.inspect.isNewType`.
7676
Patch by Adam Turner.
77+
* Remove the long-deprecated (since Sphinx 2) alias
78+
to :py:class:`!VersionChange` in
79+
:py:mod:`!sphinx.directives.other`
80+
(Deprecated since Sphinx 2).
81+
Use :py:class:`!sphinx.domains.changeset.VersionChange` directly.
82+
Patch by Adam Turner.
7783

7884
Deprecated
7985
----------

doc/extdev/deprecated.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ The following is a list of deprecated interfaces.
929929
* - ``sphinx.directives.VersionChange``
930930
- 2.1
931931
- 4.0
932-
- ``sphinx.directives.other.VersionChange``
932+
- ``sphinx.domains.changeset.VersionChange``
933933

934934
* - ``sphinx.domains.python.PyClassmember``
935935
- 2.1
@@ -1465,10 +1465,10 @@ The following is a list of deprecated interfaces.
14651465
- 3.0
14661466
- N/A
14671467

1468-
* - ``sphinx.directives.other.VersionChanges``
1468+
* - ``sphinx.directives.other.VersionChange``
14691469
- 1.8
14701470
- 3.0
1471-
- ``sphinx.domains.changeset.VersionChanges``
1471+
- ``sphinx.domains.changeset.VersionChange``
14721472

14731473
* - ``sphinx.highlighting.PygmentsBridge.unhighlight()``
14741474
- 1.8

sphinx/directives/other.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from docutils.statemachine import StateMachine
1414

1515
from sphinx import addnodes
16-
from sphinx.domains.changeset import VersionChange # NoQA: F401 # for compatibility
1716
from sphinx.domains.std import StandardDomain
1817
from sphinx.locale import _, __
1918
from sphinx.util import docname_join, logging, url_re

0 commit comments

Comments
 (0)