commands: remove superfluous getter/setter for cla_byte property

There's little point in having a getter+setter for a property if
all it does is assigning a value to an attribute of self.  That
works without any property methods

Change-Id: Id214cc83a29e8aa88f4e1413e07b419285c1b7ff
This commit is contained in:
Harald Welte
2021-05-23 14:07:23 +02:00
committed by laforge
parent 951f263de7
commit 0f96c02815

View File

@@ -29,7 +29,7 @@ from pySim.exceptions import SwMatchError
class SimCardCommands(object):
def __init__(self, transport):
self._tp = transport
self._cla_byte = "a0"
self.cla_byte = "a0"
self.sel_ctrl = "0000"
# Extract a single FCP item from TLV
@@ -89,13 +89,6 @@ class SimCardCommands(object):
"""Return the ATR of the currently inserted card."""
return self._tp.get_atr()
@property
def cla_byte(self):
return self._cla_byte
@cla_byte.setter
def cla_byte(self, value):
self._cla_byte = value
def try_select_path(self, dir_list):
""" Try to select a specified path given as list of hex-string FIDs"""
rv = []