Expose error code ``XML_ERROR_NOT_STARTED`` in `xml.parsers.expat.errors` which was
introduced in Expat 2.6.4.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
has been breached.
+.. data:: XML_ERROR_NOT_STARTED
+
+ The parser was tried to be stopped or suspended before it started.
+
+ .. versionadded:: next
+
+
.. rubric:: Footnotes
.. [1] The encoding string included in XML output should conform to the
--- /dev/null
+Expose error code :data:`~xml.parsers.expat.errors.XML_ERROR_NOT_STARTED`
+of Expat >=2.6.4 in :mod:`xml.parsers.expat.errors`.
{"XML_ERROR_NO_BUFFER", "a successful prior call to function XML_GetBuffer is required"},
/* Added in 2.4.0. */
- {"XML_ERROR_AMPLIFICATION_LIMIT_BREACH", "limit on input amplification factor (from DTD and entities) breached"}
+ {"XML_ERROR_AMPLIFICATION_LIMIT_BREACH", "limit on input amplification factor (from DTD and entities) breached"},
+
+ /* Added in 2.6.4. */
+ {"XML_ERROR_NOT_STARTED", "parser not started"},
};
static int