dexter has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/53/34153/1

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: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-MessageType: newchange

Reply via email to