From c05a0cef18cce2a1e8c156f6476f4e4cb0cec1e0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jun 2017 23:22:02 +0100 Subject: Another python 3 bytes/string fix --- ycm_extra_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ycm_extra_conf.py') diff --git a/ycm_extra_conf.py b/ycm_extra_conf.py index e4bde94..4f48279 100644 --- a/ycm_extra_conf.py +++ b/ycm_extra_conf.py @@ -24,7 +24,7 @@ def ExpandBackTicks(line): bts = re.search("^([^`]*)`([^`]*)`(.*)$", line) if bts and (len(bts.groups()) >= 3): p = subprocess.Popen(bts.group(2), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - line = bts.group(1) + p.stdout.read() + bts.group(3); + line = bts.group(1) + p.stdout.read().decode("utf-8") + bts.group(3); return ExpandBackTicks(line) return line -- cgit v1.2.3