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.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/util/requests.py b/sphinx/util/requests.py
index a2bb22fe8..020cad08b 100644
--- a/sphinx/util/requests.py
+++ b/sphinx/util/requests.py
@@ -17,7 +17,6 @@ from urllib.parse import urlsplit
import pkg_resources
import requests
-from six import string_types
try:
from requests.packages.urllib3.exceptions import SSLError
@@ -120,7 +119,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, (str, tuple)):
return certs # type: ignore
else:
hostname = urlsplit(url)[1]