Added extra import from logging for logging.error which was used on line 110
import os.path
import re
import subprocess
-import sys
from logging import getLogger
from typing import Iterable
@@ -107,7 +106,7 @@ class MyPyAnalyzer(SubprocessProgramAnalyzer):
atts["symbol"] = "mypy-" + atts["kind"]
warnings.append(atts)
else:
- logging.error("Can't parse MyPy line: " + line.strip())
+ logger.error("Can't parse MyPy line: " + line.strip())
self.completion_handler(self, warnings)
