mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
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:
@@ -106,7 +106,8 @@ class CardProfile(object):
|
||||
"""
|
||||
return interpret_sw(self.sw, sw)
|
||||
|
||||
def decode_select_response(self, data_hex:str) -> Any:
|
||||
@staticmethod
|
||||
def decode_select_response(data_hex:str) -> Any:
|
||||
"""Decode the response to a SELECT command.
|
||||
|
||||
This is the fall-back method which doesn't perform any decoding. It mostly
|
||||
|
||||
Reference in New Issue
Block a user