micropip.py updated with new URL.

pull/7/head
Peter Hinch 2018-04-19 08:27:15 +01:00
rodzic ba3ab88e4e
commit 331dbf7990
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -149,7 +149,8 @@ def url_open(url):
return s
def get_pkg_metadata(name):
f = url_open("https://pypi.python.org/pypi/%s/json" % name)
# f = url_open("https://pypi.python.org/pypi/%s/json" % name)
f = url_open("https://pypi.org/pypi/%s/json" % name)
s = read_lines(f)
try:
return json.loads(s.decode('UTF8'))