From 4a182d11314d44625cd3b7e3c5b2751c4c95431a Mon Sep 17 00:00:00 2001 From: Andrew Petelin Date: Sun, 7 Jul 2019 22:24:41 +0300 Subject: [PATCH] #20 fix: use right quotes in json output --- kconfig-hardened-check.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 7ec7a4b..a7a7d9c 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -40,6 +40,7 @@ import sys from argparse import ArgumentParser from collections import OrderedDict import re +import json debug_mode = False # set it to True to print the unknown options from the config json_mode = False # if True, print results in JSON format @@ -381,7 +382,7 @@ def print_checklist(checklist, with_results): if with_results: opt.append(o.result) opts.append(opt) - print(opts) + print(json.dumps(opts)) return # header -- 2.31.1