mirror of https://github.com/pypa/pip
Sigh. mypy.
This commit is contained in:
parent
ad27fd3afb
commit
46267a285a
|
@ -48,15 +48,15 @@ from pip._internal.utils.temp_dir import TempDirectory
|
|||
from pip._internal.utils.ui import DownloadProgressProvider
|
||||
from pip._internal.vcs import vcs
|
||||
|
||||
OpenSSL = None
|
||||
|
||||
# We don't try to import OpenSSL on Windows since that might result in it
|
||||
# loading C libraries, which can then not be uninstalled.
|
||||
if not WINDOWS:
|
||||
try:
|
||||
import OpenSSL # noqa
|
||||
except ImportError:
|
||||
pass
|
||||
OpenSSL = None
|
||||
else:
|
||||
OpenSSL = None
|
||||
|
||||
try:
|
||||
import ssl # noqa
|
||||
|
|
Loading…
Reference in New Issue