Commit d150f9d4 authored by Jason R. Coombs's avatar Jason R. Coombs

Just use the indicated version directly.

parent 8427babe
......@@ -349,13 +349,7 @@ def _resolve_version(version):
reader = codecs.getreader(charset)
doc = json.load(reader(resp))
def by_vals(ver_string):
try:
return tuple(map(int, ver_string.split('.')))
except Exception:
return (0,)
return max(doc['releases'], key=by_vals)
return doc['info']['version']
def _build_install_args(options):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment