Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize response from the GCE metadata server. (#272)
The response is always read in as bytes, and sometimes blindly passed to things that accept strings. In Python 3, some things that accept strings (like json.loads) will only accept unicode-type objects, not bytes-type objects. This change makes sure the bytes are converted to a unicode string (decoded using the utf-8 codec) in Python 3.
- Loading branch information