mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
🎨 Make linters happy
This commit is contained in:
parent
f30aea2c01
commit
ad27fd3afb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue