its-rigs / Trolly

A Python wrapper around the Trello API. Provides a group of Python classes to represent Trello Objects. All classes come with basic Trello API method calls and are easily extensible to suit your needs. See the README for more details.
MIT License
100 stars 29 forks source link

Fix JSON decoding under Python 3.x #11

Closed dirkmueller closed 10 years ago

dirkmueller commented 10 years ago

str(b'{}') returns "b'{}'", which is invalid JSON. As httplib2 under Python 2.x returns str already, we can just use content.decode() unconditionally and it should work with both Python 2.x and Python 3.x.

its-rigs commented 10 years ago

Thanks for the continued fixes!