From 7633a1123917534c4e9b301dce6dc2084759f79e Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 2 Sep 2024 16:52:23 +0200 Subject: [PATCH] pySim-shell: print cardinfo hexstrings in lowercase To ensure consistency, let's print the cardinfo hexstrings in lowercase only. Related: OS#6531 Change-Id: Ia6a8bd0e700c7fd933fb6c1b1050ed9494462d60 --- pySim-shell.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pySim-shell.py b/pySim-shell.py index 4f168d85..7db77f08 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -818,17 +818,17 @@ class PySimCommands(CommandSet): """Display information about the currently inserted card""" self._cmd.poutput("Card info:") self._cmd.poutput(" Name: %s" % self._cmd.card.name) - self._cmd.poutput(" ATR: %s" % self._cmd.rs.identity['ATR']) + self._cmd.poutput(" ATR: %s" % self._cmd.rs.identity['ATR'].lower()) eid = self._cmd.rs.identity.get('EID', None) if eid: - self._cmd.poutput(" EID: %s" % eid) - self._cmd.poutput(" ICCID: %s" % self._cmd.rs.identity['ICCID']) - self._cmd.poutput(" Class-Byte: %s" % self._cmd.lchan.scc.cla_byte) - self._cmd.poutput(" Select-Ctrl: %s" % self._cmd.lchan.scc.sel_ctrl) + self._cmd.poutput(" EID: %s" % eid.lower()) + self._cmd.poutput(" ICCID: %s" % self._cmd.rs.identity['ICCID'].lower()) + self._cmd.poutput(" Class-Byte: %s" % self._cmd.lchan.scc.cla_byte.lower()) + self._cmd.poutput(" Select-Ctrl: %s" % self._cmd.lchan.scc.sel_ctrl.lower()) if len(self._cmd.rs.mf.applications) > 0: self._cmd.poutput(" AIDs:") for a in self._cmd.rs.mf.applications: - self._cmd.poutput(" %s" % a) + self._cmd.poutput(" %s" % a.lower()) @with_default_category('ISO7816 Commands') class Iso7816Commands(CommandSet):