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

Method __eq__

scapy/volatile.py:118–124  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

116 return "%s(%s)" % (self.__class__.__name__, self._command_args())
117
118 def __eq__(self, other):
119 # type: (Any) -> bool
120 x = self._fix()
121 y = other._fix() if isinstance(other, VolatileValue) else other
122 if not isinstance(x, type(y)):
123 return False
124 return bool(x == y)
125
126 def __ne__(self, other):
127 # type: (Any) -> bool

Callers

nothing calls this directly

Calls 2

_fixMethod · 0.95
_fixMethod · 0.45

Tested by

no test coverage detected