mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-24 22:38:38 +03:00
pySim.tlv: Fix ComprTlvMeta() not passing kwargs to parent __new__
This fixes commit cdf661b24c
"pySim.tlv.COMPR_TLV_IE: Patch comprehension bit if derived class misses it"
where we introduce a comprehension-TLV specific derived metaclass, which forgets
to pass the kwargs through to the parent metaclass.
Change-Id: If65a8169bcf91bb2f943d0316f1140e07f0b8b8e
This commit is contained in:
@@ -270,7 +270,7 @@ class BER_TLV_IE(TLV_IE):
|
||||
|
||||
class ComprTlvMeta(TlvMeta):
|
||||
def __new__(mcs, name, bases, namespace, **kwargs):
|
||||
x = super().__new__(mcs, name, bases, namespace)
|
||||
x = super().__new__(mcs, name, bases, namespace, **kwargs)
|
||||
if x.tag:
|
||||
# we currently assume that the tag values always have the comprehension bit set;
|
||||
# let's fix it up if a derived class has forgotten about that
|
||||
|
||||
Reference in New Issue
Block a user