https://github.com/python/cpython/commit/1162834c0ee310f7497b4f9d18d17a998e26831c
commit: 1162834c0ee310f7497b4f9d18d17a998e26831c
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-05-10T21:11:04Z
summary:

[3.15] gh-139489: Add is_valid_text to xml.__all__ (GH-149641) (#149652)

gh-139489: Add is_valid_text to xml.__all__ (GH-149641)
(cherry picked from commit b45319e13273ee17e84e6b8c459f03b141518289)

Co-authored-by: Jelle Zijlstra <[email protected]>

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