MCPcopy Index your code
hub / github.com/secdev/scapy / get

Method get

scapy/config.py:256–261  ·  view source on GitHub ↗
(self,
            item,  # type: Union[int, Type[Packet]]
            default=None,  # type: Optional[Type[Packet]]
            )

Source from the content-addressed store, hash-verified

254 return item in self.layer2num
255
256 def get(self,
257 item, # type: Union[int, Type[Packet]]
258 default=None, # type: Optional[Type[Packet]]
259 ):
260 # type: (...) -> Optional[Union[int, Type[Packet]]]
261 return self[item] if item in self else default
262
263 def __repr__(self):
264 # type: () -> str

Callers 1

loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected