mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 02:42:00 +03:00
pylint: profile.py
pySim/profile.py:169:0: C0325: Unnecessary parens after 'assert' keyword (superfluous-parens) pySim/profile.py:189:8: W0107: Unnecessary pass statement (unnecessary-pass) pySim/profile.py:197:8: W0107: Unnecessary pass statement (unnecessary-pass) pySim/profile.py:27:0: C0411: standard import "import abc" should be placed before "from pySim.commands import SimCardCommands" (wrong-import-order) pySim/profile.py:28:0: C0411: standard import "import operator" should be placed before "from pySim.commands import SimCardCommands" (wrong-import-order) pySim/profile.py:29:0: C0411: standard import "from typing import List" should be placed before "from pySim.commands import SimCardCommands" (wrong-import-order) Change-Id: Ifd55e8ab5ab04da06c8d11e50bc15740580b2900
This commit is contained in:
@@ -21,13 +21,13 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
from pySim.commands import SimCardCommands
|
|
||||||
from pySim.filesystem import CardApplication, interpret_sw
|
|
||||||
from pySim.utils import all_subclasses
|
|
||||||
import abc
|
import abc
|
||||||
import operator
|
import operator
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
from pySim.commands import SimCardCommands
|
||||||
|
from pySim.filesystem import CardApplication, interpret_sw
|
||||||
|
from pySim.utils import all_subclasses
|
||||||
|
|
||||||
def _mf_select_test(scc: SimCardCommands,
|
def _mf_select_test(scc: SimCardCommands,
|
||||||
cla_byte: str, sel_ctrl: str,
|
cla_byte: str, sel_ctrl: str,
|
||||||
@@ -166,7 +166,7 @@ class CardProfile:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def add_addon(self, addon: 'CardProfileAddon'):
|
def add_addon(self, addon: 'CardProfileAddon'):
|
||||||
assert(addon not in self.addons)
|
assert addon not in self.addons
|
||||||
# we don't install any additional files, as that is happening in the RuntimeState.
|
# we don't install any additional files, as that is happening in the RuntimeState.
|
||||||
self.addons.append(addon)
|
self.addons.append(addon)
|
||||||
|
|
||||||
@@ -186,7 +186,6 @@ class CardProfileAddon(abc.ABC):
|
|||||||
self.desc = kw.get("desc", None)
|
self.desc = kw.get("desc", None)
|
||||||
self.files_in_mf = kw.get("files_in_mf", [])
|
self.files_in_mf = kw.get("files_in_mf", [])
|
||||||
self.shell_cmdsets = kw.get("shell_cmdsets", [])
|
self.shell_cmdsets = kw.get("shell_cmdsets", [])
|
||||||
pass
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
@@ -194,4 +193,3 @@ class CardProfileAddon(abc.ABC):
|
|||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
def probe(self, card: 'CardBase') -> bool:
|
def probe(self, card: 'CardBase') -> bool:
|
||||||
"""Probe a given card to determine whether or not this add-on is present/supported."""
|
"""Probe a given card to determine whether or not this add-on is present/supported."""
|
||||||
pass
|
|
||||||
|
|||||||
Reference in New Issue
Block a user