예제 #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
예제 #2
0
파일: asn1.py 프로젝트: 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
예제 #3
0
파일: asn1.py 프로젝트: icehawk1/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