Remove unused import of InsecurePlatformWarning

Unused since 77e0139a26.
This commit is contained in:
Jon Dufresne committed 2019-06-12 17:14:14 -07:00
1 parent 92b77a7fed
commit 2f17e7efee
1 file changed
-10
-10
View File
@@ -35,16 +35,6 @@ except ImportError:
# for requests < 2.4.0
InsecureRequestWarning = None # type: ignore
try:
from requests.packages.urllib3.exceptions import InsecurePlatformWarning
except ImportError:
try:
# for Debian-jessie
from urllib3.exceptions import InsecurePlatformWarning # type: ignore
except ImportError:
# for requests < 2.4.0
InsecurePlatformWarning = None # type: ignore
# try to load requests[security] (but only if SSL is available)
try:
import ssl # NOQA