1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

🎨 Make linters happy

This commit is contained in:
Pradyun Gedam 2017-12-23 17:33:52 +05:30
parent f30aea2c01
commit ad27fd3afb
No known key found for this signature in database
GPG key ID: DA17C4B29CB32E4B

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
if WINDOWS:
# We don't import OpenSSL on Windows since that might result in it loading
# C libraries.
OpenSSL = None
else:
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:
OpenSSL = None
pass
try:
import ssl # noqa