aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjason2020-02-11 09:35:34 -0700
committerGitHub2020-02-11 09:35:34 -0700
commit71daa0f1aab54bf24ab8cb97fb999d2874e9c5ee (patch)
treefaf109a0a0bc7584c0b309965b4d3379dc986222 /bin
parent04702253c51579c883c93bc72e4f94c8f258f434 (diff)
parent8c2efb31153037b258c96a108aa539615ef8312d (diff)
downloadeventmq-0.3.12.tar.gz
eventmq-0.3.12.zip
Merge pull request #73 from tpavelchak/fix-python-23-compatibility-issues0.3.12-rc10.3.12
Fix python 23 compatibility issues
Diffstat (limited to 'bin')
-rw-r--r--bin/logwatcher.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/logwatcher.py b/bin/logwatcher.py
index 1abeb4a..d76b0a1 100644
--- a/bin/logwatcher.py
+++ b/bin/logwatcher.py
@@ -1,9 +1,11 @@
1#!/usr/bin/env python 1#!/usr/bin/env python
2 2
3from __future__ import print_function
4
3import zmq 5import zmq
4 6
5s = zmq.Context.instance().socket(zmq.SUB) 7s = zmq.Context.instance().socket(zmq.SUB)
6s.setsockopt(zmq.SUBSCRIBE, '') 8s.setsockopt(zmq.SUBSCRIBE, b'')
7s.connect('tcp://127.0.0.1:33445') 9s.connect('tcp://127.0.0.1:33445')
8 10
9poller = zmq.Poller() 11poller = zmq.Poller()