celery/kombu — pull request #135 by psquarejho (2012-06-11 15:00:14+00:00)
Title: Problem with deserialization

When I tried to use the kombu lib to build a consumer for amqp messages, I discovered a problem with the deserialization from json objects.

The SerializerRegistry gets a buffer object instead of a string on my system (Python 2.6.6, CentOS 6), and subsequently the anyjson library chokes on the data, as it expects a string object, not a buffer.

This simple patch fixes the problem (at least for me ;) ), though I'm pretty sure it doesn't fix the issue at the root, but just fixes the effect. Please consider fixing this issue.

Regards,
Jens