py3 json.loads compat

This commit is contained in:
aisch 2015-09-04 10:19:20 -07:00
parent cc95560da1
commit b2aa09b6dc
2 changed files with 28 additions and 2 deletions

View File

@ -15,11 +15,14 @@ Pika connection pooling inspired by:
Typically you'll go with local shovel(s), `krazee-eyez kombu <http://bit.ly/1txcnnO>`_, etc. but this works too.
usage
-----
Get it:
.. code:: bash
$ pip install pika-pool
pip install pika-pool
and use it:
@ -59,3 +62,26 @@ and use it:
delivery_mode=2,
)
)
release
-------
Tests pass:
.. code:: bash
py.test test.py --cov=pika_pool --cov-report term-missing
so update ``__version__`` in:
- ``pilo/__init__.py``
then commit and tag it:
.. code:: bash
git commit -am "release v{version}"
git tag -a v{version} -m "release v{version}"
git push --tags
and `travis <https://travis-ci.org/bninja/pika-pool>`_ will publish it to `pypi <https://pypi.python.org/pypi/pika-pool/>`_.

View File

@ -71,7 +71,7 @@ class Message(dict):
@classmethod
def from_json(cls, raw):
return cls(json.loads(raw))
return cls(json.loads(raw.decode('utf-8')))
class TestNullPool(object):