fixeria has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/23633 )
Change subject: Py2 -> Py3: do not inherit classes from object
......................................................................
Py2 -> Py3: do not inherit classes from object
https://stackoverflow.com/questions/4015417/why-do-python-classes-inherit-o…
Change-Id: I15003ba591510d68f3235f71526ad5d8a456088e
---
M pySim/cards.py
M pySim/commands.py
M pySim/filesystem.py
M pySim/profile.py
M pySim/transport/calypso.py
5 files changed, 8 insertions(+), 8 deletions(-)
Approvals:
Jenkins Builder: Verified
dexter: Looks good to me, approved
diff --git a/pySim/cards.py b/pySim/cards.py
index 18e4ef3..55965d7 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -52,7 +52,7 @@
return res
-class SimCard(object):
+class SimCard:
name = 'SIM'
diff --git a/pySim/commands.py b/pySim/commands.py
index 7b50677..fa0458a 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -27,7 +27,7 @@
from pySim.exceptions import SwMatchError
-class SimCardCommands(object):
+class SimCardCommands:
def __init__(self, transport):
self._tp = transport
self.cla_byte = "a0"
diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 7c5d49a..37c668d 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -49,7 +49,7 @@
# tuple: logical-and of the listed services requires this file
CardFileService = Union[int, List[int], Tuple[int, ...]]
-class CardFile(object):
+class CardFile:
"""Base class for all objects in the smart card filesystem.
Serve as a common ancestor to all other file types; rarely used directly.
"""
@@ -1230,7 +1230,7 @@
self.shell_commands = [self.ShellCommands()]
-class RuntimeState(object):
+class RuntimeState:
"""Represent the runtime state of a session with a card."""
def __init__(self, card, profile: 'CardProfile'):
@@ -1648,7 +1648,7 @@
cmd_app.unregister_command_set(c)
-class FileData(object):
+class FileData:
"""Represent the runtime, on-card data."""
def __init__(self, fdesc):
@@ -1676,7 +1676,7 @@
return None
-class CardApplication(object):
+class CardApplication:
"""A card application is represented by an ADF (with contained hierarchy) and optionally
some SW definitions."""
diff --git a/pySim/profile.py b/pySim/profile.py
index d5df083..c535bac 100644
--- a/pySim/profile.py
+++ b/pySim/profile.py
@@ -62,7 +62,7 @@
return _mf_select_test(scc, "a0", "0000")
-class CardProfile(object):
+class CardProfile:
"""A Card Profile describes a card, it's filesystem hierarchy, an [initial] list of
applications as well as profile-specific SW and shell commands. Every card has
one card profile, but there may be multiple applications within that profile."""
diff --git a/pySim/transport/calypso.py b/pySim/transport/calypso.py
index 15c9e5f..e1326ac 100644
--- a/pySim/transport/calypso.py
+++ b/pySim/transport/calypso.py
@@ -26,7 +26,7 @@
from pySim.utils import h2b, b2h
-class L1CTLMessage(object):
+class L1CTLMessage:
# Every (encoded) L1CTL message has the following structure:
# - msg_length (2 bytes, net order)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/23633
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I15003ba591510d68f3235f71526ad5d8a456088e
Gerrit-Change-Number: 23633
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
Attention is currently required from: keith.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/28341 )
Change subject: Turn off secure_delete in sqlite
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/28341
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I9da6499a38096c8df2025bb9d35ec789864b7c5e
Gerrit-Change-Number: 28341
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: keith <keith(a)rhizomatica.org>
Gerrit-Comment-Date: Thu, 07 Jul 2022 09:39:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: osmith, laforge, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621 )
Change subject: TRXD: cosmetic: use attribute 'rotate' for 1 bit fields
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
> Okay looks like this patch was failing before, and you expected it to pass once we move away from de […]
Indeed I was hoping that Debian 10 ships a more recent version of python3-{blockdiag,nwdiag}. This is sad given that 1.5.3 dates back to 2015. Letting this patch to sit WIP for several more years then. This is not critical nor urgent. Thank you Oliver!
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Change-Id: I604cd85f79a8c21ef536840e017e8af399e935c7
Gerrit-Change-Number: 22621
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 07 Jul 2022 09:18:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: laforge, fixeria, pespin.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621 )
Change subject: TRXD: cosmetic: use attribute 'rotate' for 1 bit fields
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
> The actual build is running inside a debian 10 image in docker: […]
Okay looks like this patch was failing before, and you expected it to pass once we move away from debian 9 and have a newer python3-blockdiag version.
Well, these builds run against debian 10 now (not 11 to ensure that we can still build the packages for debian 10 too). Debian 10 has the same python3-blockdiag version 1.5.3 as debian 9, it only gets upgraded to 2.0.1 in debian 11 and upwards: https://packages.debian.org/search?suite=default§ion=all&arch=any&searc…
So we can't merge this yet, we would break building the package on debian 10.
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Change-Id: I604cd85f79a8c21ef536840e017e8af399e935c7
Gerrit-Change-Number: 22621
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 07 Jul 2022 09:10:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: laforge, fixeria, pespin.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621 )
Change subject: TRXD: cosmetic: use attribute 'rotate' for 1 bit fields
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
> According to https://osmocom.org/issues/5601, we shouldn't be testing against Debian 9 anymore. […]
The actual build is running inside a debian 10 image in docker:
https://gitea.osmocom.org/osmocom/osmo-ci/src/commit/2b272e0e83906214aae86b…
But if the build passed for you locally, the failure is probably related to switching the docker image from 9 to 10. I'll look into it.
--
To view, visit https://gerrit.osmocom.org/c/osmo-gsm-manuals/+/22621
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-gsm-manuals
Gerrit-Branch: master
Gerrit-Change-Id: I604cd85f79a8c21ef536840e017e8af399e935c7
Gerrit-Change-Number: 22621
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 07 Jul 2022 08:38:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment