contrib: correct version check

[ not(major >= 3 and minor >= 4) ] fails for '4.0'
pull/585/head
Karl-Johan Alm 6 years ago
parent c01ab133d7
commit 066d2973a6
No known key found for this signature in database
GPG Key ID: 57AF762DB3353322

@ -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)

@ -34,7 +34,7 @@ import signal
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)

Loading…
Cancel
Save