mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-05 18:53:15 +03:00
transport: Pass arbitrary kwargs to base-class constructor
Change-Id: I3cd5ba87cf53409ea97196d5789ed28eef072c68
This commit is contained in:
1 parent
c34f9405f1
commit
eb05b2f60e
5 files changed
+15
-10
No files matched your search
@@ -71,7 +71,8 @@ class L1CTLMessageSIM(L1CTLMessage):
|
||||
class CalypsoSimLink(LinkBase):
|
||||
"""Transport Link for Calypso based phones."""
|
||||
|
||||
def __init__(self, sock_path:str = "/tmp/osmocom_l2"):
|
||||
def __init__(self, sock_path:str = "/tmp/osmocom_l2", **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
# Make sure that a given socket path exists
|
||||
if not os.path.exists(sock_path):
|
||||
raise ReaderError("There is no such ('%s') UNIX socket" % sock_path)
|
||||
|
||||
Reference in new issue
Block a user