From 775691f12c5971822e70399803772d881cb62aa3 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 10 Jul 2017 13:41:15 +0100 Subject: [PATCH] [tools] Bandit seems to have changed a little. --- vigil/tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vigil/tools.py b/vigil/tools.py index 879ae64..c166900 100644 --- a/vigil/tools.py +++ b/vigil/tools.py @@ -486,8 +486,7 @@ def bandit(path): [python_version, "-m", "bandit.cli.main", "-f", "txt", path], timeout=TIMEOUT) status = Status.ok if returncode == 0 else Status.normal - text = stdout if python_version == "python" else _fix_input(eval(stdout)) - text_without_timestamp = "".join(text.splitlines(keepends=True)[2:]) + text_without_timestamp = "".join(stdout.splitlines(keepends=True)[2:]) return status, fill3.Text(text_without_timestamp)