Merge pull request #387 from dkasak/master
Fix exception thrown in .ycm_extra_conf.py
This commit is contained in:
commit
7a7021f0dd
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue