Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,14 @@ def lint_external(lines, settings, interpreter, linter):
stdout=subprocess.PIPE,
stdin=subprocess.PIPE,
stderr=subprocess.STDOUT,
startupinfo=startupinfo
startupinfo=startupinfo,
universal_newlines=True
)
result = proc.communicate(input=lines.encode('utf-8'))[0]
result = proc.communicate(input=lines)[0]

# parse STDOUT for warnings and errors
for line in result.splitlines():
line = line.decode('utf-8').strip()
line = line.strip()
warning = line.split(':', 2)
if len(warning) == 3:
try:
Expand Down