Docs: fix broken intersphinx mapping for requests

The requests docs may be moving, and redirects are currently broken.
Load the intersphinx inventory from a (currently) working temporary
location.
This commit is contained in:
medmunds
2019-09-26 19:25:20 -07:00
parent 0c37cd4b5f
commit 2762ea9ff8

View File

@@ -272,7 +272,12 @@ extlinks = {
intersphinx_mapping = {
'python': ('https://docs.python.org/3.6', None),
'django': ('https://docs.djangoproject.com/en/stable/', 'https://docs.djangoproject.com/en/stable/_objects/'),
'requests': ('http://docs.python-requests.org/en/latest/', None),
# Requests docs may be moving (Sep 2019):
# see https://github.com/psf/requests/issues/5212
# and https://github.com/psf/requests/issues/5214
'requests': ('https://docs.python-requests.org/en/latest/',
('https://docs.python-requests.org/en/latest/objects.inv',
'https://requests.kennethreitz.org/en/latest/objects.inv')),
}