mirror of https://github.com/secdev/scapy.git
Fix super() call
This commit is contained in:
parent
bd8f96a325
commit
7a13b92ebb
|
@ -182,7 +182,7 @@ class ASN1F_enum_INTEGER(ASN1F_INTEGER):
|
|||
def i2m(self, pkt, s):
|
||||
if isinstance(s, str):
|
||||
s = self.s2i.get(s)
|
||||
return super(ASN1F_INTEGER, self).i2m(pkt, s)
|
||||
return super(ASN1F_enum_INTEGER, self).i2m(pkt, s)
|
||||
def i2repr(self, pkt, x):
|
||||
if x is not None and isinstance(x, ASN1_INTEGER):
|
||||
r = self.i2s.get(x.val)
|
||||
|
|
Loading…
Reference in New Issue