diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-10-29 17:59:50 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2021-10-29 18:51:28 +0200 |
commit | c8387dc03126302414079c3906a5b58845a19f13 (patch) | |
tree | b5031826b32b9b1e90eef4db6aee660bb533d3b9 /pySim | |
parent | 946226a5d16422deba8e96f215e81c40d5a6f72e (diff) |
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
Diffstat (limited to 'pySim')
-rw-r--r-- | pySim/ts_51_011.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ def decode_select_response(resp_hex): 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()]) |