From 7c9d622f5b714ec92c4280f6292f278a88b60985 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Wed, 4 Mar 2026 03:54:01 +0000 Subject: [PATCH] Update allowlists for latest Python patch releases (#15485) Co-authored-by: Brian Schubert --- stdlib/@tests/stubtest_allowlists/darwin-py310.txt | 1 + stdlib/@tests/stubtest_allowlists/darwin-py311.txt | 1 + stdlib/@tests/stubtest_allowlists/darwin-py312.txt | 1 + stdlib/@tests/stubtest_allowlists/linux-py310.txt | 13 ------------- stdlib/@tests/stubtest_allowlists/linux-py311.txt | 13 ------------- stdlib/@tests/stubtest_allowlists/linux-py312.txt | 13 ------------- stdlib/@tests/stubtest_allowlists/win32-py310.txt | 1 + stdlib/@tests/stubtest_allowlists/win32-py311.txt | 1 + stdlib/@tests/stubtest_allowlists/win32-py312.txt | 1 + stdlib/email/_header_value_parser.pyi | 4 ++-- 10 files changed, 8 insertions(+), 41 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index e2a10b3ed..64485b833 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt @@ -64,6 +64,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.10.20 # (Remove once 3.10.20 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt index 6cbfa8b22..733310806 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt @@ -35,6 +35,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.11.15 # (Remove once 3.11.15 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt index 28e7411ab..844a22458 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt @@ -22,6 +22,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.12.13 # (Remove once 3.12.13 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/@tests/stubtest_allowlists/linux-py310.txt b/stdlib/@tests/stubtest_allowlists/linux-py310.txt index fd8e9b71c..a4083aa22 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py310.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# Incompatible changes introduced in Python 3.10.20 -# (Remove once 3.10.20 becomes available for GitHub Actions) -html.parser.HTMLParser.__init__ # parameter `scripting` -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py311.txt b/stdlib/@tests/stubtest_allowlists/linux-py311.txt index cff95b93c..a4083aa22 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py311.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# Incompatible changes introduced in Python 3.11.15 -# (Remove once 3.11.15 becomes available for GitHub Actions) -html.parser.HTMLParser.__init__ # parameter `scripting` -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/linux-py312.txt b/stdlib/@tests/stubtest_allowlists/linux-py312.txt index 9d9984713..a4083aa22 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py312.txt @@ -1,16 +1,3 @@ -# ========= -# Temporary -# ========= - -# Incompatible changes introduced in Python 3.12.13 -# (Remove once 3.12.13 becomes available for GitHub Actions) -html.parser.HTMLParser.__init__ # parameter `scripting` -pyexpat.XMLParserType.SetAllocTrackerActivationThreshold -pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification -xml.parsers.expat.XMLParserType.SetAllocTrackerActivationThreshold -xml.parsers.expat.XMLParserType.SetAllocTrackerMaximumAmplification - - # ============================================================= # Allowlist entries that cannot or should not be fixed; <= 3.12 # ============================================================= diff --git a/stdlib/@tests/stubtest_allowlists/win32-py310.txt b/stdlib/@tests/stubtest_allowlists/win32-py310.txt index f067989f1..68a5eb0e4 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py310.txt @@ -64,6 +64,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.10.20 # (Remove once 3.10.20 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/@tests/stubtest_allowlists/win32-py311.txt b/stdlib/@tests/stubtest_allowlists/win32-py311.txt index 902e308f0..502a9fc31 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py311.txt @@ -35,6 +35,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.11.15 # (Remove once 3.11.15 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/@tests/stubtest_allowlists/win32-py312.txt b/stdlib/@tests/stubtest_allowlists/win32-py312.txt index f0e828de2..8c71d5940 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py312.txt @@ -22,6 +22,7 @@ tarfile.TarFile.makelink_with_filter # Incompatible changes introduced in Python 3.12.13 # (Remove once 3.12.13 becomes available for GitHub Actions) +email._header_value_parser.make_parenthesis_pairs html.parser.HTMLParser.__init__ # parameter `scripting` pyexpat.XMLParserType.SetAllocTrackerActivationThreshold pyexpat.XMLParserType.SetAllocTrackerMaximumAmplification diff --git a/stdlib/email/_header_value_parser.pyi b/stdlib/email/_header_value_parser.pyi index 32caf83bd..a6d7c48d6 100644 --- a/stdlib/email/_header_value_parser.pyi +++ b/stdlib/email/_header_value_parser.pyi @@ -26,8 +26,8 @@ SPECIALSNL: Final[set[str]] def make_quoted_pairs(value: Any) -> str: ... def quote_string(value: Any) -> str: ... -if sys.version_info >= (3, 13): - # Added in Python 3.13.12, 3.14.3 +if sys.version_info >= (3, 10): + # Added in Python 3.10.20, 3.11.15, 3.12.13, 3.13.12, 3.14.3 def make_parenthesis_pairs(value: Any) -> str: ... rfc2047_matcher: Final[Pattern[str]]