transport: Pass arbitrary kwargs to base-class constructor

Change-Id: I3cd5ba87cf53409ea97196d5789ed28eef072c68
This commit is contained in:
Harald Welte
2021-04-10 11:01:56 +02:00
parent c34f9405f1
commit eb05b2f60e
5 changed files with 15 additions and 10 deletions

View File

@@ -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)