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

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9763
          http://sourceforge.net/p/docutils/code/9763
Author:   milde
Date:     2024-06-14 16:19:29 +0000 (Fri, 14 Jun 2024)
Log Message:
-----------
Remove `docutils.transforms.writer_aux.Compound`.

Modified Paths:
--------------
    trunk/docutils/HISTORY.txt
    trunk/docutils/RELEASE-NOTES.txt
    trunk/docutils/docutils/transforms/writer_aux.py

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2024-06-14 16:19:20 UTC (rev 9762)
+++ trunk/docutils/HISTORY.txt	2024-06-14 16:19:29 UTC (rev 9763)
@@ -87,6 +87,10 @@
     follows a <meta> or <decoration> element as this is invalid
     according to ``docutils.dtd``.
 
+* docutils/transforms/writer_aux.py
+
+  - Removed `Compound` class.
+
 * docutils/transforms/references.py
 
   - Make `AnonymousHyperlinks` transform idempotent.

Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt	2024-06-14 16:19:20 UTC (rev 9762)
+++ trunk/docutils/RELEASE-NOTES.txt	2024-06-14 16:19:29 UTC (rev 9763)
@@ -228,17 +228,19 @@
 * Removed objects:
 
   `docutils.core.Publisher.setup_option_parser()`
-    internal, obsolete
+     internal, obsolete
   `docutils.nodes.Element.set_class()`
      Obsolete. Append to Element['classes'] directly.
-  `docutils.utils.error_reporting`
-     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
+  `docutils.transforms.writer_aux.Compound`
+     not used since Dec 2010
+  `docutils.utils.error_reporting`
+     obsolete in Python 3
+  `docutils.utils.Reporter.set_conditions()`
+     Obsolete. Set attributes via configuration settings or directly.
 
 * Removed files:
 

Modified: trunk/docutils/docutils/transforms/writer_aux.py
===================================================================
--- trunk/docutils/docutils/transforms/writer_aux.py	2024-06-14 16:19:20 UTC (rev 9762)
+++ trunk/docutils/docutils/transforms/writer_aux.py	2024-06-14 16:19:29 UTC (rev 9763)
@@ -14,53 +14,10 @@
 
 __docformat__ = 'reStructuredText'
 
-import warnings
-
 from docutils import nodes, languages
 from docutils.transforms import Transform
 
 
-class Compound(Transform):
-
-    """
-    .. warning:: This transform is not used by Docutils since Dec 2010
-                 and will be removed in Docutils 0.21 or later.
-
-    Flatten all compound paragraphs.  For example, transform ::
-
-        <compound>
-            <paragraph>
-            <literal_block>
-            <paragraph>
-
-    into ::
-
-        <paragraph>
-        <literal_block classes="continued">
-        <paragraph classes="continued">
-    """
-
-    default_priority = 910
-
-    def __init__(self, document, startnode=None):
-        warnings.warn('docutils.transforms.writer_aux.Compound is deprecated'
-                      ' and will be removed in Docutils 0.21 or later.',
-                      DeprecationWarning, stacklevel=2)
-        super().__init__(document, startnode)
-
-    def apply(self):
-        for compound in self.document.findall(nodes.compound):
-            first_child = True
-            for child in compound:
-                if first_child:
-                    if not isinstance(child, nodes.Invisible):
-                        first_child = False
-                else:
-                    child['classes'].append('continued')
-            # Substitute children for compound.
-            compound.replace_self(compound[:])
-
-
 class Admonitions(Transform):
 
     """

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.