Merge pull request #387 from dkasak/master

Fix exception thrown in .ycm_extra_conf.py
This commit is contained in:
jelle van der Waa 2016-08-11 22:11:40 +02:00 committed by GitHub
commit 7a7021f0dd
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ database = None
def pkg_config(pkg): def pkg_config(pkg):
def not_whitespace(string): def not_whitespace(string):
return not (string == '' or string == '\n') return not (string == '' or string == '\n')
output = subprocess.check_output(['pkg-config', '--cflags', pkg]).strip() output = subprocess.check_output(['pkg-config', '--cflags', pkg], universal_newlines=True).strip()
return filter(not_whitespace, output.split(' ')) return filter(not_whitespace, output.split(' '))
flags = [ flags = [