aboutsummaryrefslogtreecommitdiff
path: root/contrib/zmq/zmq_sub.py
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-07-18 15:36:08 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2018-07-18 16:46:19 +0900
commit066d2973a6fff0bf494c4a0000218fe72983808b (patch)
tree1512691559103a54002ba99ccbc251f3963a7832 /contrib/zmq/zmq_sub.py
parentc01ab133d7ae7a35ee828b6ae3335aa9a82a05b9 (diff)
contrib: correct version check
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
Diffstat (limited to 'contrib/zmq/zmq_sub.py')
-rw-r--r--contrib/zmq/zmq_sub.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/zmq/zmq_sub.py b/contrib/zmq/zmq_sub.py
index 60768dc59a..fa9e669308 100644
--- a/contrib/zmq/zmq_sub.py
+++ b/contrib/zmq/zmq_sub.py
@@ -30,7 +30,7 @@ import signal
import struct
import sys
-if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5):
+if (sys.version_info.major, sys.version_info.minor) < (3, 5):
print("This example only works with Python 3.5 and greater")
sys.exit(1)