From c8387dc03126302414079c3906a5b58845a19f13 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 29 Oct 2021 17:59:50 +0200 Subject: [PATCH] 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 --- pySim/ts_51_011.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py index 3492a8d5..743c14bd 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()])