[tools] Bandit seems to have changed a little.

This commit is contained in:
Andrew Hamilton 2017-07-10 13:41:15 +01:00
parent c4e5d7c390
commit 775691f12c

View file

@ -486,8 +486,7 @@ def bandit(path):
[python_version, "-m", "bandit.cli.main", "-f", "txt", path], [python_version, "-m", "bandit.cli.main", "-f", "txt", path],
timeout=TIMEOUT) timeout=TIMEOUT)
status = Status.ok if returncode == 0 else Status.normal status = Status.ok if returncode == 0 else Status.normal
text = stdout if python_version == "python" else _fix_input(eval(stdout)) text_without_timestamp = "".join(stdout.splitlines(keepends=True)[2:])
text_without_timestamp = "".join(text.splitlines(keepends=True)[2:])
return status, fill3.Text(text_without_timestamp) return status, fill3.Text(text_without_timestamp)