Skip to content

Commit b4c27ea

Browse files
didpgeorge
authored andcommitted
upip: Use new JSON API pointing to pypi.org.
So upip doesn't have to follow redirects.
1 parent 49e8a83 commit b4c27ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upip/upip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def url_open(url):
156156

157157

158158
def get_pkg_metadata(name):
159-
f = url_open("https://pypi.python.org/pypi/%s/json" % name)
159+
f = url_open("https://pypi.org/pypi/%s/json" % name)
160160
try:
161161
return json.load(f)
162162
finally:

0 commit comments

Comments
 (0)