txZMQ
txZMQ copied to clipboard
txzmq/pubsub.py", line 26 -- exception cannot conatenate bytes
File "/home/ar/Envs/a3_pyvcluster/lib/python3.7/site-packages/txzmq/pubsub.py", line 26, in publish |class ZmqSubConnection(ZmqConnection):
self.send(tag + b'\0' + message) | """
TypeError: can only concatenate str (not "bytes") to str
def publish(self, message, tag=b''):
"""
Publish message
with specified tag
.
:param message: message data
:type message: str
:param tag: message tag
:type tag: str
"""
self.send(tag + b'\0' + message) <---- It does not work in python3, I tried both tag and message being bytes and it does not work either
I've also encountered this issue, and I have created #89 to address this.