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

@@ -29,7 +29,8 @@ class SerialSimLink(LinkBase):
""" pySim: Transport Link for serial (RS232) based readers included with simcard"""
def __init__(self, device:str='/dev/ttyUSB0', baudrate:int=9600, rst:str='-rts',
debug:bool=False):
debug:bool=False, **kwargs):
super().__init__(**kwargs)
if not os.path.exists(device):
raise ValueError("device file %s does not exist -- abort" % device)
self._sl = serial.Serial(