summaryrefslogtreecommitdiff
path: root/sphinx/util/requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/requests.py')
-rw-r--r--sphinx/util/requests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py
index 8b7204c2f..03e815c2c 100644
--- a/sphinx/util/requests.py
+++ b/sphinx/util/requests.py
@@ -22,7 +22,7 @@ try:
except ImportError:
# python-requests package in Debian jessie does not provide ``requests.packages.urllib3``.
# So try to import the exceptions from urllib3 package.
- from urllib3.exceptions import SSLError, InsecureRequestWarning
+ from urllib3.exceptions import SSLError, InsecureRequestWarning # type: ignore
# try to load requests[security]
try:
@@ -77,7 +77,7 @@ def _get_tls_cacert(url, config):
certs = getattr(config, 'tls_cacerts', None)
if not certs:
return True
- elif isinstance(certs, (string_types, tuple)):
+ elif isinstance(certs, (string_types, tuple)): # type: ignore
return certs
else:
hostname = urlsplit(url)[1]