Skip to content

Commit b2d38dc

Browse files
authored
[pyexpat] Billion laughs mitigation methods backported to 3.13 and 3.14 (#15900)
1 parent 7e1dfd9 commit b2d38dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stdlib/pyexpat/__init__.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class XMLParserType:
3333
# Added in Python 3.10.20, 3.11.15, 3.12.3, 3.13.10, 3.14.1
3434
def SetAllocTrackerActivationThreshold(self, threshold: int, /) -> None: ...
3535
def SetAllocTrackerMaximumAmplification(self, max_factor: float, /) -> None: ...
36-
if sys.version_info >= (3, 15):
36+
if sys.version_info >= (3, 13):
37+
# Added in Python 3.13.4, 3.14.6
3738
def SetBillionLaughsAttackProtectionActivationThreshold(self, threshold: int, /) -> None: ...
3839
def SetBillionLaughsAttackProtectionMaximumAmplification(self, max_factor: float, /) -> None: ...
3940

0 commit comments

Comments
 (0)