Example #1
0
 def __init__(self,
              key,  # type: str
              value,  # type: int
              context=None,  # type: Optional[Type[ASN1_Class]]
              codec=None  # type: Optional[Dict[ASN1Codec, Type[BERcodec_Object[Any]]]]  # noqa: E501
              ):
     # type: (...) -> None
     EnumElement.__init__(self, key, value)
     # populated by the metaclass
     self.context = context  # type: Type[ASN1_Class]  # type: ignore
     if codec is None:
         codec = {}
     self._codec = codec
Example #2
0
File: asn1.py Project: gns24/scapy
 def __init__(self, key, value, context=None, codec=None):
     EnumElement.__init__(self, key, value)
     self._context = context
     if codec == None:
         codec = {}
     self._codec = codec
Example #3
0
 def __init__(self, key, value, context=None, codec=None):
     EnumElement.__init__(self, key, value)
     self._context = context
     if codec == None:
         codec = {}
     self._codec = codec