Commit 058a046d authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Use appropriate method when dealing with unicode

parent 4e32a1e0
......@@ -47,7 +47,7 @@ def main():
socket.connect(f"tcp://{host}:{port}")
topicfilter = "events"
socket.setsockopt(zmq.SUBSCRIBE, topicfilter)
socket.setsockopt_string(zmq.SUBSCRIBE, topicfilter)
while True:
string = socket.recv()
......
......@@ -33,7 +33,7 @@ def main():
socket.connect(f"tcp://{host}:{port}")
topicfilter = "events"
socket.setsockopt(zmq.SUBSCRIBE, topicfilter)
socket.setsockopt_string(zmq.SUBSCRIBE, topicfilter)
prime_stages()
......
......@@ -39,7 +39,7 @@ def main():
socket.connect(f"tcp://{host}:{port}")
topicfilter = "events"
socket.setsockopt(zmq.SUBSCRIBE, topicfilter)
socket.setsockopt_string(zmq.SUBSCRIBE, topicfilter)
while True:
string = socket.recv()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment