mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 20:08:36 +03:00
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
This commit is contained in:
@@ -322,7 +322,7 @@ class Iso7816Commands(CommandSet):
|
|||||||
path = opts.arg_list[0]
|
path = opts.arg_list[0]
|
||||||
fcp_dec = self._cmd.rs.select(path, self._cmd)
|
fcp_dec = self._cmd.rs.select(path, self._cmd)
|
||||||
self._cmd.update_prompt()
|
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]:
|
def complete_select(self, text, line, begidx, endidx) -> List[str]:
|
||||||
"""Command Line tab completion for SELECT"""
|
"""Command Line tab completion for SELECT"""
|
||||||
|
|||||||
Reference in New Issue
Block a user