From 00742402aa88447f94c4a8c1c067a9e0dfb8c981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Wed, 21 Dec 2016 14:59:11 +1100 Subject: [PATCH] Drop redundant dict call Change-Id: I3b80d403f9515da8cb611833c1ed5e8f145470e0 --- bandit/formatters/json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandit/formatters/json.py b/bandit/formatters/json.py index ab53585a..dfdfebaf 100644 --- a/bandit/formatters/json.py +++ b/bandit/formatters/json.py @@ -100,7 +100,7 @@ def report(manager, fileobj, sev_level, conf_level, lines=-1): :param lines: Number of lines to report, -1 for all ''' - machine_output = dict({'results': [], 'errors': []}) + machine_output = {'results': [], 'errors': []} for (fname, reason) in manager.skipped: machine_output['errors'].append({'filename': fname, 'reason': reason})