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

In resolve version, always cast to a string (avoiding Unicode on Python 2). Fixes #476.

parent cfcfccb6
......@@ -3,6 +3,13 @@ CHANGES
=======
------
19.1.1
------
* Issue #476: Cast version to string (using default encoding)
to avoid creating Unicode types on Python 2 clients.
----
19.1
----
......
......@@ -354,7 +354,7 @@ def _resolve_version(version):
reader = codecs.getreader(charset)
doc = json.load(reader(resp))
return doc['info']['version']
return str(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