Skip to content

Commit

Permalink
Increase Python 2 requirement to 2.7.1
Browse files Browse the repository at this point in the history
Tests are failing on Python 2.7.0 with the exception "TypeError: argument can't
be <type 'unicode'>"
  • Loading branch information
micbou committed Apr 24, 2018
1 parent 84554d2 commit 06bd763
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2805,7 +2805,7 @@ let g:ycm_disable_for_files_larger_than_kb = 1000
This option specifies the Python interpreter to use to run the [jedi][]
completion library. Specify the Python interpreter to use to get completions.
By default the Python under which [ycmd][] runs is used ([ycmd][] runs on
Python 2.7 or 3.4+).
Python 2.7.1+ or 3.4+).

Default: `''`

Expand Down
2 changes: 1 addition & 1 deletion doc/youcompleteme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3061,7 +3061,7 @@ The *g:ycm_python_binary_path* option
This option specifies the Python interpreter to use to run the jedi [12]
completion library. Specify the Python interpreter to use to get completions.
By default the Python under which ycmd [47] runs is used (ycmd [47] runs on
Python 2.7 or 3.4+).
Python 2.7.1+ or 3.4+).

Default: "''"
>
Expand Down
8 changes: 4 additions & 4 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
import os.path as p
import glob

PY_MAJOR, PY_MINOR = sys.version_info[ 0 : 2 ]
if not ( ( PY_MAJOR == 2 and PY_MINOR >= 6 ) or
( PY_MAJOR == 3 and PY_MINOR >= 3 ) or
PY_MAJOR, PY_MINOR, PY_PATCH = sys.version_info[ 0 : 3 ]
if not ( ( PY_MAJOR == 2 and PY_MINOR == 7 and PY_PATCH >= 1 ) or
( PY_MAJOR == 3 and PY_MINOR >= 4 ) or
PY_MAJOR > 3 ):
sys.exit( 'YouCompleteMe requires Python >= 2.6 or >= 3.3; '
sys.exit( 'YouCompleteMe requires Python >= 2.7.1 or >= 3.4; '
'your version of Python is ' + sys.version )

DIR_OF_THIS_SCRIPT = p.dirname( p.abspath( __file__ ) )
Expand Down
2 changes: 1 addition & 1 deletion plugin/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ elseif !has( 'timers' )
elseif !has( 'python' ) && !has( 'python3' )
echohl WarningMsg |
\ echomsg "YouCompleteMe unavailable: requires Vim compiled with " .
\ "Python (2.7 or 3.4+) support." |
\ "Python (2.7.1+ or 3.4+) support." |
\ echohl None
call s:restore_cpo()
finish
Expand Down

0 comments on commit 06bd763

Please sign in to comment.