Skip to content

Commit

Permalink
contrib: correct version check
Browse files Browse the repository at this point in the history
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
  • Loading branch information
kallewoof committed Jul 18, 2018
1 parent c01ab13 commit 066d297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/zmq/zmq_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
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)

Expand Down
2 changes: 1 addition & 1 deletion contrib/zmq/zmq_sub3.4.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import struct
import sys

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

Expand Down

0 comments on commit 066d297

Please sign in to comment.