jonathanslenders/asyncio-redis — pull request #53 by denya (2014-07-11 17:33:37+00:00)
Title: Fix pubsub for BytesProtocol

I use BytesEncoder and i have problem with pubsub.
If you use BytesEncoder, subscribe fails, because MultiBulkReply._decode doesn't convert bytes to string. And then, assert in _handle_pubsub_multibulk_reply fails.

Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 302, in _step
result = next(coro)
File "/home/denya/.ve/lib/python3.4/site-packages/asyncio_redis/protocol.py", line 991, in _handle_pubsub_multibulk_reply
assert result[0] in ('message', 'subscribe', 'unsubscribe', 'pmessage', 'psubscribe', 'punsubscribe')
AssertionError