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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Apr 10 22:13:59 UTC 2021


laforge has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210410/d5528723/attachment.htm>


More information about the gerrit-log mailing list