Change in pysim[master]: pySim-shell: Use poutput_json() whenever applicable

laforge gerrit-no-reply at lists.osmocom.org
Sat Apr 10 16:41:27 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23703 )


Change subject: pySim-shell: Use poutput_json() whenever applicable
......................................................................

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
---
M pySim-shell.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/03/23703/1

diff --git a/pySim-shell.py b/pySim-shell.py
index 1d81eb8..cfba73f 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -322,7 +322,7 @@
 		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"""

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23703
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie023669e77311350ade4f8dbc65431e71b586052
Gerrit-Change-Number: 23703
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210410/ec4ad566/attachment.htm>


More information about the gerrit-log mailing list