-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patching out urllib3.contrib.pyopenssl deprecation warnings
- Loading branch information
1 parent
91d31b8
commit a797ab7
Showing
3 changed files
with
1 addition
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,23 +19,6 @@ | |
from .util.timeout import Timeout | ||
from .util.url import get_host | ||
|
||
# === NOTE TO REPACKAGERS AND VENDORS === | ||
# Please delete this block, this logic is only | ||
# for urllib3 being distributed via PyPI. | ||
# See: https://github.com/urllib3/urllib3/issues/2680 | ||
try: | ||
import urllib3_secure_extra # type: ignore # noqa: F401 | ||
except ImportError: | ||
pass | ||
else: | ||
warnings.warn( | ||
"'urllib3[secure]' extra is deprecated and will be removed " | ||
"in a future release of urllib3 2.x. Read more in this issue: " | ||
"https://github.com/urllib3/urllib3/issues/2680", | ||
category=DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
__author__ = "Andrey Petrov ([email protected])" | ||
__license__ = "MIT" | ||
__version__ = __version__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters