|
From: <mi...@us...> - 2024-06-14 16:20:11
|
Revision: 9767
http://sourceforge.net/p/docutils/code/9767
Author: milde
Date: 2024-06-14 16:20:08 +0000 (Fri, 14 Jun 2024)
Log Message:
-----------
Update deprecation warnings.
Change warnings with `PendingDeprecationWarning` to `DeprectionWarning`.
Postpone removing `directives.CSVTable.HeaderDialect` to 1.0.
Modified Paths:
--------------
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/nodes.py
trunk/docutils/docutils/parsers/rst/directives/tables.py
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2024-06-14 16:19:59 UTC (rev 9766)
+++ trunk/docutils/RELEASE-NOTES.txt 2024-06-14 16:20:08 UTC (rev 9767)
@@ -122,7 +122,7 @@
----
* Remove `parsers.rst.directives.CSVTable.HeaderDialect`
- in Docutils 0.22.
+ in Docutils 1.0.
* Remove support for the `recommonmark parser`_ in Docutils 1.0.
Recommonmark is unmaintained since 2021 and deprecated in favour
Modified: trunk/docutils/docutils/nodes.py
===================================================================
--- trunk/docutils/docutils/nodes.py 2024-06-14 16:19:59 UTC (rev 9766)
+++ trunk/docutils/docutils/nodes.py 2024-06-14 16:20:08 UTC (rev 9767)
@@ -306,7 +306,7 @@
"""
# traverse() may be eventually removed:
warnings.warn('nodes.Node.traverse() is obsoleted by Node.findall().',
- PendingDeprecationWarning, stacklevel=2)
+ DeprecationWarning, stacklevel=2)
return list(self.findall(condition, include_self, descend,
siblings, ascend))
Modified: trunk/docutils/docutils/parsers/rst/directives/tables.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/tables.py 2024-06-14 16:19:59 UTC (rev 9766)
+++ trunk/docutils/docutils/parsers/rst/directives/tables.py 2024-06-14 16:20:08 UTC (rev 9767)
@@ -249,8 +249,8 @@
def __init__(self):
warnings.warn('CSVTable.HeaderDialect will be removed '
- 'in Docutils 0.22.',
- PendingDeprecationWarning, stacklevel=2)
+ 'in Docutils 1.0',
+ DeprecationWarning, stacklevel=2)
super().__init__()
@staticmethod
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|