diff --git a/zmq/publisher.py b/zmq/publisher.py index 4de94b6..39d551b 100644 --- a/zmq/publisher.py +++ b/zmq/publisher.py @@ -1,7 +1,4 @@ #!/usr/bin/env python3 -import itertools -import sys - import zmq @@ -10,7 +7,7 @@ socket = context.socket(zmq.PUB) socket.bind("tcp://127.0.0.1:5559") n = 10 -msg_body = "a" * n +msg_body = "\"" + "a" * n + "\"" try: while True: socket.send_string(f"test {msg_body}")