forked from public/pysim
profile: decode_select_response can be a static method
The method decode_select_response does not access any property of the object. This means the method can be static. Change-Id: Idd7aaebcf1ab0099cd40a88b8938604e84d8a88b
This commit is contained in:
@@ -978,7 +978,8 @@ class CardProfileSIM(CardProfile):
|
||||
|
||||
super().__init__('SIM', desc='GSM SIM Card', cla="a0", sel_ctrl="0000", files_in_mf=[DF_TELECOM(), DF_GSM()], sw=sw)
|
||||
|
||||
def decode_select_response(self, resp_hex:str) -> Any:
|
||||
@staticmethod
|
||||
def decode_select_response(resp_hex:str) -> Any:
|
||||
resp_bin = h2b(resp_hex)
|
||||
struct_of_file_map = {
|
||||
0: 'transparent',
|
||||
|
||||
Reference in New Issue
Block a user