mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user