Skip to content

Commit 066d297

Browse files
committed
contrib: correct version check
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
1 parent c01ab13 commit 066d297

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/zmq/zmq_sub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import struct
3131
import sys
3232

33-
if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5):
33+
if (sys.version_info.major, sys.version_info.minor) < (3, 5):
3434
print("This example only works with Python 3.5 and greater")
3535
sys.exit(1)
3636

contrib/zmq/zmq_sub3.4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import struct
3535
import sys
3636

37-
if not (sys.version_info.major >= 3 and sys.version_info.minor >= 4):
37+
if (sys.version_info.major, sys.version_info.minor) < (3, 4):
3838
print("This example only works with Python 3.4 and greater")
3939
sys.exit(1)
4040

0 commit comments

Comments
 (0)