cohena/pygazelle — pull request #7 by alsanchez (2013-04-28 12:23:26+00:00)
Title: #4 Python 3 compatibility: Bytes vs strings on json.loads()

The Requests library returns the response body as a sequence of bytes; however the Python 3 version of json.loads() explicitly requires a sequence of characters.

This patch checks if we are running under Python 3 and, if so, decodes the byte sequence to a string before passing it to json.loads()