aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/logwatcher.py2
-rw-r--r--eventmq/subscriber.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/logwatcher.py b/bin/logwatcher.py
index dd2860f..1abeb4a 100644
--- a/bin/logwatcher.py
+++ b/bin/logwatcher.py
@@ -13,4 +13,4 @@ while True:
13 13
14 if events.get(s) == zmq.POLLIN: 14 if events.get(s) == zmq.POLLIN:
15 msg = s.recv_multipart() 15 msg = s.recv_multipart()
16 print msg # noqa 16 print(msg) # noqa
diff --git a/eventmq/subscriber.py b/eventmq/subscriber.py
index f585572..ef1aa0b 100644
--- a/eventmq/subscriber.py
+++ b/eventmq/subscriber.py
@@ -1,6 +1,7 @@
1""" 1"""
2derp subscriber 2derp subscriber
3""" 3"""
4from past.builtins import xrange
4import zmq 5import zmq
5 6
6 7
@@ -18,4 +19,4 @@ if __name__ == "__main__":
18 # block until something comes in. normally you'd do something with 19 # block until something comes in. normally you'd do something with
19 # this in another thread or something 20 # this in another thread or something
20 for s in sockets: 21 for s in sockets:
21 print s.recv_multipart() # noqa 22 print(s.recv_multipart()) # noqa