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

Method __exit__

test/testsocket.py:60–63  ·  view source on GitHub ↗

Close the socket

(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

58 return self
59
60 def __exit__(self, exc_type, exc_value, traceback):
61 # type: (Optional[Type[BaseException]], Optional[BaseException], Optional[Any]) -> None # noqa: E501
62 """Close the socket"""
63 self.close()
64
65 def sr(self, *args, **kargs):
66 # type: (Any, Any) -> Tuple[SndRcvList, PacketList]

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected