diff options
| author | jason | 2020-02-11 09:35:34 -0700 |
|---|---|---|
| committer | GitHub | 2020-02-11 09:35:34 -0700 |
| commit | 71daa0f1aab54bf24ab8cb97fb999d2874e9c5ee (patch) | |
| tree | faf109a0a0bc7584c0b309965b4d3379dc986222 /bin | |
| parent | 04702253c51579c883c93bc72e4f94c8f258f434 (diff) | |
| parent | 8c2efb31153037b258c96a108aa539615ef8312d (diff) | |
| download | eventmq-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.py | 4 |
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 | ||
| 3 | from __future__ import print_function | ||
| 4 | |||
| 3 | import zmq | 5 | import zmq |
| 4 | 6 | ||
| 5 | s = zmq.Context.instance().socket(zmq.SUB) | 7 | s = zmq.Context.instance().socket(zmq.SUB) |
| 6 | s.setsockopt(zmq.SUBSCRIBE, '') | 8 | s.setsockopt(zmq.SUBSCRIBE, b'') |
| 7 | s.connect('tcp://127.0.0.1:33445') | 9 | s.connect('tcp://127.0.0.1:33445') |
| 8 | 10 | ||
| 9 | poller = zmq.Poller() | 11 | poller = zmq.Poller() |