Skip to content

Commit 00dfd91

Browse files
committed
Update msgs
1 parent 1c091cb commit 00dfd91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/ssl.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class SSLCertVerificationError(SSLError, ValueError):
8080
CertificateError = SSLCertVerificationError
8181

8282
if sys.version_info < (3, 12):
83-
@deprecated("Deprecated since Python 3.7; Removed in Python 3.12.")
83+
@deprecated("Deprecated since Python 3.7. Removed in Python 3.12. Use `SSLContext.wrap_socket()` instead.")
8484
def wrap_socket(
8585
sock: socket.socket,
8686
keyfile: StrOrBytesPath | None = None,
@@ -133,7 +133,7 @@ else:
133133
_create_default_https_context: Callable[..., SSLContext]
134134

135135
if sys.version_info < (3, 12):
136-
@deprecated("Deprecated since Python 3.7; Removed in Python 3.12.")
136+
@deprecated("Deprecated since Python 3.7. Removed in Python 3.12.")
137137
def match_hostname(cert: _PeerCertRetDictType, hostname: str) -> None: ...
138138

139139
def cert_time_to_seconds(cert_time: str) -> int: ...
@@ -421,7 +421,7 @@ class SSLContext(_SSLContext):
421421
@overload
422422
def __new__(cls, protocol: int, *args: Any, **kwargs: Any) -> Self: ...
423423
@overload
424-
@deprecated("Deprecated since Python 3.10; Use a specific version of the SSL protocol.")
424+
@deprecated("Deprecated since Python 3.10. Use a specific version of the SSL protocol.")
425425
def __new__(cls, protocol: None = None, *args: Any, **kwargs: Any) -> Self: ...
426426
else:
427427
def __new__(cls, protocol: int = ..., *args: Any, **kwargs: Any) -> Self: ...

0 commit comments

Comments
 (0)