Merge pull request #163 from naoina/master

Fix the error in the .c syntax checking and Python 3.x
This commit is contained in:
Martin Grenfell 2012-02-06 08:31:42 -08:00
commit 111b012548

View File

@ -145,7 +145,7 @@ function! syntastic#c#CheckPython()
if executable('python')
if !exists('s:python_flags')
let s:python_flags = system('python -c ''from distutils import '
\ . 'sysconfig; print sysconfig.get_python_inc()''')
\ . 'sysconfig; import sys; sys.stdout.write(sysconfig.get_python_inc())''')
let s:python_flags = substitute(s:python_flags, "\n", '', '')
let s:python_flags = ' -I' . s:python_flags
endif