MCPcopy
hub / github.com/secdev/scapy / __repr__

Method __repr__

scapy/config.py:487–495  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

485 return "%s: %i valid items. Timeout=%rs" % (self.name, len(self), self.timeout) # noqa: E501
486
487 def __repr__(self):
488 # type: () -> str
489 s = []
490 if self:
491 mk = max(len(k) for k in self)
492 fmt = "%%-%is %%s" % (mk + 1)
493 for item in self.items():
494 s.append(fmt % item)
495 return "\n".join(s)
496
497 def copy(self):
498 # type: () -> CacheInstance

Callers

nothing calls this directly

Calls 3

itemsMethod · 0.95
joinMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected