[html.parser] Add scripting param for later patch releases (#14979)

This commit is contained in:
Semyon Moroz
2025-11-04 20:37:43 +04:00
committed by GitHub
parent 551ea9d09d
commit 546dd282c3
8 changed files with 54 additions and 1 deletions
@@ -10,6 +10,14 @@
(fcntl.F_SETLEASE)? # GNU extension
# =======
# <= 3.14
# =======
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__
# ==========================================
# Modules that do not exist on MacOS systems
# ==========================================
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======
# Added in Python 3.10.20 (parameter `scripting`)
html.parser.HTMLParser.__init__
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======
# Added in Python 3.11.15 (parameter `scripting`)
html.parser.HTMLParser.__init__
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -1,3 +1,11 @@
# =======
# <= 3.14
# =======
# Added in Python 3.12.13 (parameter `scripting`)
html.parser.HTMLParser.__init__
# =============================================================
# Allowlist entries that cannot or should not be fixed; <= 3.12
# =============================================================
@@ -0,0 +1,6 @@
# =======
# <= 3.14
# =======
# Added in Python 3.13.10 (parameter `scripting`)
html.parser.HTMLParser.__init__
@@ -0,0 +1,6 @@
# =======
# <= 3.14
# =======
# Added in Python 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__
@@ -9,6 +9,14 @@ _winapi.OpenFileMapping
_winapi.VirtualQuerySize
# =======
# <= 3.14
# =======
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
html.parser.HTMLParser.__init__
# ============================================
# Modules that do not exist on Windows systems
# ============================================
+2 -1
View File
@@ -9,7 +9,8 @@ class HTMLParser(ParserBase):
# Added in Python 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.6
RCDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]
def __init__(self, *, convert_charrefs: bool = True) -> None: ...
# `scripting` parameter added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
def __init__(self, *, convert_charrefs: bool = True, scripting: bool = False) -> None: ...
def feed(self, data: str) -> None: ...
def close(self) -> None: ...
def get_starttag_text(self) -> str | None: ...