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

aa-turner--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9816
          http://sourceforge.net/p/docutils/code/9816
Author:   aa-turner
Date:     2024-08-01 14:27:54 +0000 (Thu, 01 Aug 2024)
Log Message:
-----------
Fix tests with Python 3.9

Modified Paths:
--------------
    trunk/docutils/docutils/nodes.py
    trunk/docutils/tools/dev/unicode2rstsubs.py

Modified: trunk/docutils/docutils/nodes.py
===================================================================
--- trunk/docutils/docutils/nodes.py	2024-08-01 14:03:04 UTC (rev 9815)
+++ trunk/docutils/docutils/nodes.py	2024-08-01 14:27:54 UTC (rev 9816)
@@ -1733,7 +1733,7 @@
     # recursive content model, see below
 
 
-section.content_model: Final = (
+section.content_model = (
     # (title, subtitle?, %structure.model;)
     (title, '.'),
     (subtitle, '?'),
@@ -2382,7 +2382,7 @@
     # recursive content model: (line | line_block)+
 
 
-line_block.content_model: Final = (((line, line_block), '+'),)
+line_block.content_model = (((line, line_block), '+'),)
 
 
 # Admonitions

Modified: trunk/docutils/tools/dev/unicode2rstsubs.py
===================================================================
--- trunk/docutils/tools/dev/unicode2rstsubs.py	2024-08-01 14:03:04 UTC (rev 9815)
+++ trunk/docutils/tools/dev/unicode2rstsubs.py	2024-08-01 14:27:54 UTC (rev 9816)
@@ -24,11 +24,11 @@
 import os
 import re
 import sys
-from typing import TYPE_CHECKING, TextIO
+from typing import TYPE_CHECKING
 from xml.parsers.expat import ParserCreate
 
 if TYPE_CHECKING:
-    from typing import BinaryIO, NoReturn
+    from typing import BinaryIO, NoReturn, TextIO
     from xml.parsers.expat import XMLParserType
 
 

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.