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:
Philipp Maier
2021-11-16 15:16:39 +01:00
parent 825b564115
commit 5998a3a8b3
6 changed files with 27 additions and 29 deletions

View File

@@ -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