contrib: correct version check
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -30,7 +30,7 @@ import signal
|
|||||||
import struct
|
import struct
|
||||||
import sys
|
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")
|
print("This example only works with Python 3.5 and greater")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import signal
|
|||||||
import struct
|
import struct
|
||||||
import sys
|
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")
|
print("This example only works with Python 3.4 and greater")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user