Sigh. mypy.

This commit is contained in:
Pradyun Gedam 2017-12-23 18:19:27 +05:30
parent ad27fd3afb
commit 46267a285a
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 3 additions and 3 deletions

View File

@ -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