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

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9761
          http://sourceforge.net/p/docutils/code/9761
Author:   milde
Date:     2024-06-14 15:04:19 +0000 (Fri, 14 Jun 2024)
Log Message:
-----------
Remove `parsers.rst.directives.tables.CSVTable.(en|de)code_from_csv()`

Not required with Python 3.

Modified Paths:
--------------
    trunk/docutils/HISTORY.txt
    trunk/docutils/RELEASE-NOTES.txt
    trunk/docutils/docutils/parsers/rst/directives/tables.py

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2024-06-14 15:04:05 UTC (rev 9760)
+++ trunk/docutils/HISTORY.txt	2024-06-14 15:04:19 UTC (rev 9761)
@@ -67,6 +67,11 @@
     "include" directive is used with :parser: option.
     Enables system messages with correct source/line indication.
 
+* docutils/parsers/rst/directives/tables.py
+
+  - Removed `CSVTable.decode_from_csv()` and `CSVTable.encode_from_csv()`.
+    Not required with Python 3.
+
 * docutils/transforms/frontmatter.py
 
   - Update `DocInfo` to work with corrected element categories.

Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt	2024-06-14 15:04:05 UTC (rev 9760)
+++ trunk/docutils/RELEASE-NOTES.txt	2024-06-14 15:04:19 UTC (rev 9761)
@@ -232,6 +232,10 @@
      Obsolete in Python 3
   `docutils.utils.Reporter.set_conditions()`
      Obsolete. Set attributes via configuration settings or directly.
+  `docutils.parsers.rst.directives.tables.CSVTable.decode_from_csv()`
+     not required with Python 3
+  `docutils.parsers.rst.directives.tables.CSVTable.encode_from_csv()`
+     not required with Python 3
 
 * Removed files:
 

Modified: trunk/docutils/docutils/parsers/rst/directives/tables.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/directives/tables.py	2024-06-14 15:04:05 UTC (rev 9760)
+++ trunk/docutils/docutils/parsers/rst/directives/tables.py	2024-06-14 15:04:19 UTC (rev 9761)
@@ -386,22 +386,6 @@
             raise SystemMessagePropagation(error)
         return csv_data, source
 
-    @staticmethod
-    def decode_from_csv(s):
-        warnings.warn('CSVTable.decode_from_csv()'
-                  ' is not required with Python 3'
-                  ' and will be removed in Docutils 0.21 or later.',
-                  DeprecationWarning, stacklevel=2)
-        return s
-
-    @staticmethod
-    def encode_for_csv(s):
-        warnings.warn('CSVTable.encode_from_csv()'
-                  ' is not required with Python 3'
-                  ' and will be removed in Docutils 0.21 or later.',
-                  DeprecationWarning, stacklevel=2)
-        return s
-
     def parse_csv_data_into_rows(self, csv_data, dialect, source):
         csv_reader = csv.reader((line + '\n' for line in csv_data),
                                 dialect=dialect)

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.