fix(bin/linja): don't double-decode Popen output

After 8ca3ee48, `text` is always a `str` instance, which provokes an `AttributeError` in Python 3.
This commit is contained in:
Sebastian Ullrich 2015-05-01 00:49:17 +02:00 committed by Soonho Kong
parent 4e1146a2d5
commit 24b00c3a73

View file

@ -185,8 +185,6 @@ class FlycheckItemList:
tmpBuffer = "" tmpBuffer = ""
ignore = True ignore = True
for line in text.splitlines(): for line in text.splitlines():
# I had to add the following line to avoid a crash on Python 3.4 for Windows
line = line.decode("utf-8")
if line.startswith(g_flycheck_header): if line.startswith(g_flycheck_header):
tmpBuffer = tmpBuffer + line + "\n" tmpBuffer = tmpBuffer + line + "\n"
ignore = False ignore = False