Change in pysim[master]: ts_51_011: implement CardProfileSIM as a class

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/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Oct 29 17:24:00 UTC 2021


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


Change subject: ts_51_011: implement CardProfileSIM as a class
......................................................................

ts_51_011: implement CardProfileSIM as a class

CardProfileSIM is currenty instantiated directly. However, it should be
implemented as class and then instaniated later like CardProfileUICC

Change-Id: I37d49b11a07ce5a80d1a703fab4620b7d1ecb25b
---
M pySim/ts_51_011.py
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/42/26042/1

diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index 3492a8d..743c14b 100644
--- a/pySim/ts_51_011.py
+++ b/pySim/ts_51_011.py
@@ -980,4 +980,6 @@
 
     return ret
 
-CardProfileSIM = CardProfile('SIM', desc='GSM SIM Card', files_in_mf=[DF_TELECOM(), DF_GSM()])
+class CardProfileSIM(CardProfile):
+    def __init__(self):
+        super().__init__('SIM', desc='GSM SIM Card', files_in_mf=[DF_TELECOM(), DF_GSM()])

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I37d49b11a07ce5a80d1a703fab4620b7d1ecb25b
Gerrit-Change-Number: 26042
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211029/b20806f3/attachment.htm>


More information about the gerrit-log mailing list