[tools] Bandit seems to have changed a little.
This commit is contained in:
parent
c4e5d7c390
commit
775691f12c
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue