diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index e2a10b3ed34f..64485b83320b 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 6cbfa8b22c53..733310806748 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 28e7411ab886..844a224585df 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 fd8e9b71c7c2..a4083aa22ed7 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 cff95b93c0fb..a4083aa22ed7 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 9d9984713dcb..a4083aa22ed7 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 f067989f1418..68a5eb0e4e74 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 902e308f05c7..502a9fc3133a 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 f0e828de25f6..8c71d5940361 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 32caf83bd022..a6d7c48d69cd 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]]