Skip to content

Commit d41f412

Browse files
authored
Undeprecate pyOpenSSL module (#3127)
1 parent b6c04cb commit d41f412

4 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎changelog/3126.feature.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Undeprecated pyOpenSSL third-party module.

‎docs/reference/contrib/pyopenssl.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
PyOpenSSL
22
=========
3-
.. warning::
4-
DEPRECATED: This module is deprecated and will be removed in urllib3 v2.1.0.
5-
Read more in this `issue <https://github.com/urllib3/urllib3/issues/2680>`_.
63

74
.. automodule:: urllib3.contrib.pyopenssl
85
:members:

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ filterwarnings = [
8787
"error",
8888
'''default:urllib3 v2.0 only supports OpenSSL 1.1.1+.*''',
8989
'''default:'urllib3\[secure\]' extra is deprecated and will be removed in urllib3 v2\.1\.0.*:DeprecationWarning''',
90-
'''default:'urllib3\.contrib\.pyopenssl' module is deprecated and will be removed in urllib3 v2\.1\.0.*:DeprecationWarning''',
9190
'''default:'urllib3\.contrib\.securetransport' module is deprecated and will be removed in urllib3 v2\.1\.0.*:DeprecationWarning''',
9291
'''default:No IPv6 support. Falling back to IPv4:urllib3.exceptions.HTTPWarning''',
9392
'''default:No IPv6 support. skipping:urllib3.exceptions.HTTPWarning''',

‎src/urllib3/contrib/pyopenssl.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,12 @@ class UnsupportedExtension(Exception): # type: ignore[no-redef]
5454
import logging
5555
import ssl
5656
import typing
57-
import warnings
5857
from io import BytesIO
5958
from socket import socket as socket_cls
6059
from socket import timeout
6160

6261
from .. import util
6362

64-
warnings.warn(
65-
"'urllib3.contrib.pyopenssl' module is deprecated and will be removed "
66-
"in urllib3 v2.1.0. Read more in this issue: "
67-
"https://github.com/urllib3/urllib3/issues/2680",
68-
category=DeprecationWarning,
69-
stacklevel=2,
70-
)
71-
7263
if typing.TYPE_CHECKING:
7364
from OpenSSL.crypto import X509 # type: ignore[import]
7465

0 commit comments

Comments
 (0)