Workaround some pycurl.error issues

In my experiments, pycurl.error issues [1][2] do not appear if no 30x redirection involved.

Tested with https://github.com/tornadoweb/tornado/files/2624772/nv.log

[1] https://github.com/tornadoweb/tornado/issues/2542
[2] https://github.com/curl/curl/issues/3324
This commit is contained in:
Chih-Hsuan Yen 2018-12-04 22:23:04 +08:00 committed by GitHub
parent 5af558d214
commit 6c6aff99b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
from .simple_json import simple_json
PYPI_URL = 'https://pypi.python.org/pypi/%s/json'
PYPI_URL = 'https://pypi.org/pypi/%s/json'
def _version_from_json(data):
return data['info']['version']