SF.net SVN: docutils:[9859] trunk/docutils/docutils/nodes.py

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9859
          http://sourceforge.net/p/docutils/code/9859
Author:   aa-turner
Date:     2024-08-07 11:07:48 +0000 (Wed, 07 Aug 2024)
Log Message:
-----------
Don't call ``super().__init__()`` in ``TextElement``

This might be causing test failures in Sphinx.
Revert for now as a not-strictly-needed change.

Modified Paths:
--------------
    trunk/docutils/docutils/nodes.py

Modified: trunk/docutils/docutils/nodes.py
===================================================================
--- trunk/docutils/docutils/nodes.py	2024-08-07 01:52:00 UTC (rev 9858)
+++ trunk/docutils/docutils/nodes.py	2024-08-07 11:07:48 UTC (rev 9859)
@@ -1567,10 +1567,10 @@
     ) -> None:
         if text:
             textnode = Text(text)
-            super().__init__(rawsource, textnode, *children,
+            Element.__init__(self, rawsource, textnode, *children,
                              **attributes)
         else:
-            super().__init__(rawsource, *children, **attributes)
+            Element.__init__(self, rawsource, *children, **attributes)
 
 
 class FixedTextElement(TextElement):

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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.