laforge has submitted this change. (
https://gerrit.osmocom.org/c/pysim/+/34153 )
Change subject: sim-rest-server: use UiccCardBase instead of UsimCard
......................................................................
sim-rest-server: use UiccCardBase instead of UsimCard
The class UsimCard is deprecated and only still used in very old
legacy applications. let's use the more modern UiccCardBase class
instead.
Related: RT#67094
Change-Id: I3676f033833665751c0d953176eafe175b20c14a
---
M contrib/sim-rest-server.py
1 file changed, 16 insertions(+), 2 deletions(-)
Approvals:
laforge: Looks good to me, approved
osmith: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/contrib/sim-rest-server.py b/contrib/sim-rest-server.py
index ccf4430..9f31168 100755
--- a/contrib/sim-rest-server.py
+++ b/contrib/sim-rest-server.py
@@ -26,7 +26,7 @@
from pySim.transport import ApduTracer
from pySim.transport.pcsc import PcscSimLink
from pySim.commands import SimCardCommands
-from pySim.cards import UsimCard
+from pySim.cards import UiccCardBase
from pySim.exceptions import *
class ApduPrintTracer(ApduTracer):
@@ -39,7 +39,7 @@
tp.connect()
scc = SimCardCommands(tp)
- card = UsimCard(scc)
+ card = UiccCardBase(scc)
# this should be part of UsimCard, but FairewavesSIM breaks with that :/
scc.cla_byte = "00"
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/34153
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I3676f033833665751c0d953176eafe175b20c14a
Gerrit-Change-Number: 34153
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged