Skip to content

Commit 45c0e52

Browse files
authored
Remove obsolete mentions of Python 3.8 (#13842)
1 parent b67e0da commit 45c0e52

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

stdlib/email/_header_value_parser.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ TOKEN_ENDS: Final[set[str]]
1717
ASPECIALS: Final[set[str]]
1818
ATTRIBUTE_ENDS: Final[set[str]]
1919
EXTENDED_ATTRIBUTE_ENDS: Final[set[str]]
20-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
20+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
2121
NLSET: Final[set[str]]
22-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
22+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
2323
SPECIALSNL: Final[set[str]]
2424

2525
if sys.version_info >= (3, 10):

stdlib/email/_policybase.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class _PolicyBase(Generic[_MessageT]):
2323
raise_on_defect: bool
2424
mangle_from_: bool
2525
message_factory: _MessageFactory[_MessageT] | None
26-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
26+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
2727
verify_generated_headers: bool
2828

2929
def __init__(
@@ -35,7 +35,7 @@ class _PolicyBase(Generic[_MessageT]):
3535
raise_on_defect: bool = False,
3636
mangle_from_: bool = ..., # default depends on sub-class
3737
message_factory: _MessageFactory[_MessageT] | None = None,
38-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
38+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
3939
verify_generated_headers: bool = True,
4040
) -> None: ...
4141
def clone(
@@ -47,7 +47,7 @@ class _PolicyBase(Generic[_MessageT]):
4747
raise_on_defect: bool = ...,
4848
mangle_from_: bool = ...,
4949
message_factory: _MessageFactory[_MessageT] | None = ...,
50-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
50+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
5151
verify_generated_headers: bool = ...,
5252
) -> Self: ...
5353
def __add__(self, other: Policy) -> Self: ...

stdlib/email/errors.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class BoundaryError(MessageParseError): ...
77
class MultipartConversionError(MessageError, TypeError): ...
88
class CharsetError(MessageError): ...
99

10-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
10+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
1111
class HeaderWriteError(MessageError): ...
1212

1313
class MessageDefect(ValueError):

stdlib/email/policy.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class EmailPolicy(Policy[_MessageT]):
2424
raise_on_defect: bool = ...,
2525
mangle_from_: bool = ...,
2626
message_factory: None = None,
27-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
27+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
2828
verify_generated_headers: bool = ...,
2929
utf8: bool = ...,
3030
refold_source: str = ...,
@@ -41,7 +41,7 @@ class EmailPolicy(Policy[_MessageT]):
4141
raise_on_defect: bool = ...,
4242
mangle_from_: bool = ...,
4343
message_factory: _MessageFactory[_MessageT] | None = ...,
44-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
44+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
4545
verify_generated_headers: bool = ...,
4646
utf8: bool = ...,
4747
refold_source: str = ...,
@@ -62,7 +62,7 @@ class EmailPolicy(Policy[_MessageT]):
6262
raise_on_defect: bool = ...,
6363
mangle_from_: bool = ...,
6464
message_factory: _MessageFactory[_MessageT] | None = ...,
65-
# Added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
65+
# Added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
6666
verify_generated_headers: bool = ...,
6767
utf8: bool = ...,
6868
refold_source: str = ...,

stdlib/email/utils.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ _PDTZ: TypeAlias = tuple[int, int, int, int, int, int, int, int, int, int | None
3030
def quote(str: str) -> str: ...
3131
def unquote(str: str) -> str: ...
3232

33-
# `strict` parameter added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
33+
# `strict` parameter added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
3434
def parseaddr(addr: str | list[str], *, strict: bool = True) -> tuple[str, str]: ...
3535
def formataddr(pair: tuple[str | None, str], charset: str | Charset = "utf-8") -> str: ...
3636

37-
# `strict` parameter added in Python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.5
37+
# `strict` parameter added in Python 3.9.20, 3.10.15, 3.11.10, 3.12.5
3838
def getaddresses(fieldvalues: Iterable[str], *, strict: bool = True) -> list[tuple[str, str]]: ...
3939
@overload
4040
def parsedate(data: None) -> None: ...

stdlib/sys/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ flags: _flags
9696
# This can be re-visited when typeshed drops support for 3.10,
9797
# at which point all supported versions will include int_max_str_digits
9898
# in all patch versions.
99-
# 3.8 and 3.9 are 15 or 16-tuple
99+
# 3.9 is 15 or 16-tuple
100100
# 3.10 is 16 or 17-tuple
101101
# 3.11+ is an 18-tuple.
102102
@final
@@ -184,7 +184,7 @@ class _flags(_UninstantiableStructseq, tuple[int, ...]):
184184
# Whether or not this exists on lower versions of Python
185185
# may depend on which patch release you're using
186186
# (it was backported to all Python versions on 3.8+ as a security fix)
187-
# Added in: 3.8.14, 3.9.14, 3.10.7
187+
# Added in: 3.9.14, 3.10.7
188188
# and present in all versions of 3.11 and later.
189189
@property
190190
def int_max_str_digits(self) -> int: ...
@@ -448,7 +448,7 @@ if sys.platform == "win32":
448448
def get_coroutine_origin_tracking_depth() -> int: ...
449449
def set_coroutine_origin_tracking_depth(depth: int) -> None: ...
450450

451-
# The following two functions were added in 3.11.0, 3.10.7, 3.9.14, and 3.8.14,
451+
# The following two functions were added in 3.11.0, 3.10.7, and 3.9.14,
452452
# as part of the response to CVE-2020-10735
453453
def set_int_max_str_digits(maxdigits: int) -> None: ...
454454
def get_int_max_str_digits() -> int: ...

0 commit comments

Comments
 (0)