MCPcopy Create free account
hub / github.com/secdev/scapy / __repr__

Method __repr__

scapy/base_classes.py:121–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119 self.scope = None
120
121 def __repr__(self) -> str:
122 val = super(_ScopedIP, self).__repr__()
123 if self.scope is not None:
124 return "ScopedIP(%s, scope=%s)" % (val, repr(self.scope))
125 return val
126
127
128def ScopedIP(net: str, scope: Optional[Any] = None) -> _ScopedIP:

Callers

nothing calls this directly

Calls 1

__repr__Method · 0.45

Tested by

no test coverage detected