From b00e893e73ea0ab3a5dfa2eab9304eaa2181d770 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 10 Apr 2021 17:19:13 +0200 Subject: [PATCH] pySim-shell: Use poutput_json() whenever applicable poutput_json() uses a customs JSONEncoder, and hence all JSON prenting should go through it. Change-Id: Ie023669e77311350ade4f8dbc65431e71b586052 --- pySim-shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim-shell.py b/pySim-shell.py index 1d81eb8b..cfba73f0 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -322,7 +322,7 @@ class Iso7816Commands(CommandSet): path = opts.arg_list[0] fcp_dec = self._cmd.rs.select(path, self._cmd) self._cmd.update_prompt() - self._cmd.poutput(json.dumps(fcp_dec, indent=4)) + self._cmd.poutput_json(fcp_dec) def complete_select(self, text, line, begidx, endidx) -> List[str]: """Command Line tab completion for SELECT"""