From: Andrew Petelin Date: Sun, 7 Jul 2019 19:24:41 +0000 (+0300) Subject: #20 fix: use right quotes in json output X-Git-Tag: v0.5.2~7^2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=refs%2Fpull%2F22%2Fhead;p=kconfig-hardened-check.git #20 fix: use right quotes in json output --- 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