SF.net SVN: docutils:[9767] trunk/docutils

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
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.



_______________________________________________
Docutils-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.