]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-139489: Add is_valid_text to xml.__all__ (GH-149641) (#149652)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 May 2026 21:11:04 +0000 (23:11 +0200)
committerGitHub <noreply@github.com>
Sun, 10 May 2026 21:11:04 +0000 (21:11 +0000)
gh-139489: Add is_valid_text to xml.__all__ (GH-149641)
(cherry picked from commit b45319e13273ee17e84e6b8c459f03b141518289)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Lib/xml/__init__.py
Misc/NEWS.d/next/Library/2026-05-10-07-21-51.gh-issue-139489.rS7LTA.rst [new file with mode: 0644]

index 002d6d3e0e8267c4e5939f0cd35bc50fdb9c6a48..ecfce1c6ae52cf281ddf67712e16ce9b6d86814e 100644 (file)
@@ -18,4 +18,4 @@ etree -- The ElementTree XML library.  This is a subset of the full
 
 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 (file)
index 0000000..40fe7e9
--- /dev/null
@@ -0,0 +1 @@
+Add :func:`xml.is_valid_text` to ``xml.__all__``.