kopia lustrzana https://github.com/peterhinch/micropython-samples
micropip.py updated with new URL.
rodzic
ba3ab88e4e
commit
331dbf7990
|
@ -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'))
|
||||
|
|
Ładowanie…
Reference in New Issue