summaryrefslogtreecommitdiff
path: root/ycm_extra_conf.py
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:30:49 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-29 14:30:49 +0100
commit090b27a989291226115fff20d7e4a95465651cbf (patch)
tree210bd1e2f8f135922de76c475b15c3f0e3e9260a /ycm_extra_conf.py
parentLook for Jamroot.jam as well as Jamfile.jam (diff)
downloadutil-090b27a989291226115fff20d7e4a95465651cbf.tar.bz2
util-090b27a989291226115fff20d7e4a95465651cbf.tar.xz
util-090b27a989291226115fff20d7e4a95465651cbf.zip
Python3 fixes
Diffstat (limited to 'ycm_extra_conf.py')
-rw-r--r--ycm_extra_conf.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ycm_extra_conf.py b/ycm_extra_conf.py
index a132da4..e4bde94 100644
--- a/ycm_extra_conf.py
+++ b/ycm_extra_conf.py
@@ -31,11 +31,12 @@ def ExpandBackTicks(line):
def GetBJamCommandFlags(rtarget, target):
flags = []
p = subprocess.Popen(['b2', '-and2', rtarget], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- for line in p.stdout.readlines():
- if string.lstrip(line).startswith('"g++"') and string.find(line, '"'+target+'"') > 0:
+ for lineBytes in p.stdout.readlines():
+ line = lineBytes.decode("utf-8")
+ if str.lstrip(line).startswith('"g++"') and str.find(line, '"'+target+'"') > 0:
flags = []
line = ExpandBackTicks(line)
- args = string.split(line)
+ args = str.split(line)
idx = 1
while args[idx] != '-c':
flags.append(args[idx])