mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
script: simplify python version check (#12672)
This commit is contained in:
parent
38145b919d
commit
44cbf288ec
@ -50,8 +50,10 @@ import msgpack
|
||||
|
||||
from xml.dom import minidom
|
||||
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
|
||||
print("requires Python 3.5+")
|
||||
MIN_PYTHON_VERSION = (3, 5)
|
||||
|
||||
if sys.version_info < MIN_PYTHON_VERSION:
|
||||
print("requires Python {}.{}+".format(*MIN_PYTHON_VERSION))
|
||||
sys.exit(1)
|
||||
|
||||
DEBUG = ('DEBUG' in os.environ)
|
||||
|
Loading…
Reference in New Issue
Block a user