@@ -80,7 +80,7 @@ class SSLCertVerificationError(SSLError, ValueError):
8080CertificateError = SSLCertVerificationError
8181
8282if 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
135135if 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
139139def 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