upip: Use new JSON API pointing to pypi.org.

So upip doesn't have to follow redirects.
pull/275/merge
Dustin Ingram 2018-04-17 15:34:03 -05:00 zatwierdzone przez Damien George
rodzic 49e8a839a0
commit b4c27ea1ea
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -156,7 +156,7 @@ def url_open(url):
def get_pkg_metadata(name):
f = url_open("https://pypi.python.org/pypi/%s/json" % name)
f = url_open("https://pypi.org/pypi/%s/json" % name)
try:
return json.load(f)
finally: