contrib: correct version check
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
This commit is contained in:
parent
c01ab133d7
commit
066d2973a6
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue