mobile.GTP: remove unneeded kwargs in GTPIEs

This commit is contained in:
p1-bmu 2022-03-30 19:50:13 +02:00
parent 8af6d3edc8
commit ac96f1d832
1 changed files with 1 additions and 6 deletions

View File

@ -2040,14 +2040,9 @@ class GTPIEs(Envelope):
VERIF_MAND = True
def __init__(self, *args, **kwargs):
if '_wopt' in kwargs:
wopt = kwargs['_wopt']
del kwargs['_wopt']
else:
wopt = False
Envelope.__init__(self, *args, **kwargs)
# ensure at least all mandatory IEs are there
self.init_ies(wopt=wopt)
self.init_ies(wopt=False)
def _from_char(self, char):
if self.get_trans():