From d51e47acaec545e83dbaa174da5eec2584b8aabc Mon Sep 17 00:00:00 2001 From: mtu <maxence.tury@ssi.gouv.fr> Date: Tue, 2 Feb 2016 14:01:22 +0100 Subject: [PATCH] Remove unneeded attribution in ASN1F_optional (which caused Python 2.6 to crash) --- scapy/asn1fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/asn1fields.py b/scapy/asn1fields.py index c7c364e7..3b69e2e6 100644 --- a/scapy/asn1fields.py +++ b/scapy/asn1fields.py @@ -375,7 +375,7 @@ class ASN1F_optional(ASN1F_field): self.name = field.name self.islist = field.islist self.holds_packets = field.holds_packets - self.i2repr = field.i2repr + #self.i2repr = field.i2repr def __getattr__(self, attr): return getattr(self._field, attr) def m2i(self, pkt, s): -- GitLab