kopia lustrzana https://github.com/micropython/micropython-lib
upip: Use new JSON API pointing to pypi.org.
So upip doesn't have to follow redirects.pull/275/merge
rodzic
49e8a839a0
commit
b4c27ea1ea
|
@ -156,7 +156,7 @@ def url_open(url):
|
||||||
|
|
||||||
|
|
||||||
def get_pkg_metadata(name):
|
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:
|
try:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
finally:
|
finally:
|
||||||
|
|
Ładowanie…
Reference in New Issue