https://github.com/python/cpython/commit/b45319e13273ee17e84e6b8c459f03b141518289
commit: b45319e13273ee17e84e6b8c459f03b141518289
branch: main
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-05-10T13:43:57-07:00
summary:

gh-139489: Add is_valid_text to xml.__all__ (#149641)

files:
A Misc/NEWS.d/next/Library/2026-05-10-07-21-51.gh-issue-139489.rS7LTA.rst
M Lib/xml/__init__.py

diff --git a/Lib/xml/__init__.py b/Lib/xml/__init__.py
index 002d6d3e0e8267..ecfce1c6ae52cf 100644
--- a/Lib/xml/__init__.py
+++ b/Lib/xml/__init__.py
@@ -18,4 +18,4 @@
 
 from .utils import *
 
-__all__ = ["dom", "parsers", "sax", "etree", "is_valid_name"]
+__all__ = ["dom", "parsers", "sax", "etree", "is_valid_name", "is_valid_text"]
diff --git 
a/Misc/NEWS.d/next/Library/2026-05-10-07-21-51.gh-issue-139489.rS7LTA.rst 
b/Misc/NEWS.d/next/Library/2026-05-10-07-21-51.gh-issue-139489.rS7LTA.rst
new file mode 100644
index 00000000000000..40fe7e9fd6a008
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2026-05-10-07-21-51.gh-issue-139489.rS7LTA.rst
@@ -0,0 +1 @@
+Add :func:`xml.is_valid_text` to ``xml.__all__``.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to