contrib: correct version check

[ not(major >= 3 and minor >= 4) ] fails for '4.0'
This commit is contained in:
Karl-Johan Alm 2018-07-18 15:36:08 +09:00
parent c01ab133d7
commit 066d2973a6
No known key found for this signature in database
GPG key ID: 57AF762DB3353322
2 changed files with 2 additions and 2 deletions

View file

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

View file

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