Skip to content

Commit

Permalink
Make Python version checking more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Valloric committed Feb 29, 2016
1 parent fd17e45 commit a913d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import errno

PY_MAJOR, PY_MINOR = sys.version_info[ 0 : 2 ]
if not ( ( PY_MAJOR == 2 and PY_MINOR in [ 6, 7 ] ) or
if not ( ( PY_MAJOR == 2 and PY_MINOR >= 6 ) or
( PY_MAJOR == 3 and PY_MINOR >= 3 ) or
PY_MAJOR > 3 ):
sys.exit( 'ycmd requires Python 2.6, 2.7 or >= 3.3; '
Expand Down

0 comments on commit a913d01

Please sign in to comment.