Skip to content

Commit 546dd28

Browse files
authored
[html.parser] Add scripting param for later patch releases (#14979)
1 parent 551ea9d commit 546dd28

File tree

8 files changed

+54
-1
lines changed

8 files changed

+54
-1
lines changed

stdlib/@tests/stubtest_allowlists/darwin.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
(fcntl.F_SETLEASE)? # GNU extension
1111

1212

13+
# =======
14+
# <= 3.14
15+
# =======
16+
17+
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
18+
html.parser.HTMLParser.__init__
19+
20+
1321
# ==========================================
1422
# Modules that do not exist on MacOS systems
1523
# ==========================================

stdlib/@tests/stubtest_allowlists/linux-py310.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# =======
2+
# <= 3.14
3+
# =======
4+
5+
# Added in Python 3.10.20 (parameter `scripting`)
6+
html.parser.HTMLParser.__init__
7+
8+
19
# =============================================================
210
# Allowlist entries that cannot or should not be fixed; <= 3.12
311
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py311.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# =======
2+
# <= 3.14
3+
# =======
4+
5+
# Added in Python 3.11.15 (parameter `scripting`)
6+
html.parser.HTMLParser.__init__
7+
8+
19
# =============================================================
210
# Allowlist entries that cannot or should not be fixed; <= 3.12
311
# =============================================================

stdlib/@tests/stubtest_allowlists/linux-py312.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# =======
2+
# <= 3.14
3+
# =======
4+
5+
# Added in Python 3.12.13 (parameter `scripting`)
6+
html.parser.HTMLParser.__init__
7+
8+
19
# =============================================================
210
# Allowlist entries that cannot or should not be fixed; <= 3.12
311
# =============================================================
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# =======
2+
# <= 3.14
3+
# =======
4+
5+
# Added in Python 3.13.10 (parameter `scripting`)
6+
html.parser.HTMLParser.__init__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# =======
2+
# <= 3.14
3+
# =======
4+
5+
# Added in Python 3.14.1 (parameter `scripting`)
6+
html.parser.HTMLParser.__init__

stdlib/@tests/stubtest_allowlists/win32.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ _winapi.OpenFileMapping
99
_winapi.VirtualQuerySize
1010

1111

12+
# =======
13+
# <= 3.14
14+
# =======
15+
16+
# Added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1 (parameter `scripting`)
17+
html.parser.HTMLParser.__init__
18+
19+
1220
# ============================================
1321
# Modules that do not exist on Windows systems
1422
# ============================================

stdlib/html/parser.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class HTMLParser(ParserBase):
99
# Added in Python 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.6
1010
RCDATA_CONTENT_ELEMENTS: Final[tuple[str, ...]]
1111

12-
def __init__(self, *, convert_charrefs: bool = True) -> None: ...
12+
# `scripting` parameter added in Python 3.9.25, 3.10.20, 3.11.15, 3.12.13, 3.13.10, 3.14.1
13+
def __init__(self, *, convert_charrefs: bool = True, scripting: bool = False) -> None: ...
1314
def feed(self, data: str) -> None: ...
1415
def close(self) -> None: ...
1516
def get_starttag_text(self) -> str | None: ...

0 commit comments

Comments
 (0)