mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Requests no longer vendorizes urllib3
This commit is contained in:
parent
a83afb6135
commit
1b595f26d8
1 changed files with 2 additions and 5 deletions
|
|
@ -32,11 +32,8 @@ logger = logging.getLogger(__name__)
|
|||
# for SSL, which does allow these options to be configured.
|
||||
# https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
|
||||
if sys.version_info < (2, 7, 9): # pragma: no cover
|
||||
try:
|
||||
requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3() # type: ignore
|
||||
except AttributeError:
|
||||
import urllib3.contrib.pyopenssl # pylint: disable=import-error
|
||||
urllib3.contrib.pyopenssl.inject_into_urllib3()
|
||||
import urllib3.contrib.pyopenssl # pylint: disable=import-error
|
||||
urllib3.contrib.pyopenssl.inject_into_urllib3()
|
||||
|
||||
DEFAULT_NETWORK_TIMEOUT = 45
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue