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

Method __repr__

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

Source from the content-addressed store, hash-verified

346
347class CommandsList(List[Callable[..., Any]]):
348 def __repr__(self):
349 # type: () -> str
350 s = []
351 for li in sorted(self, key=lambda x: x.__name__):
352 doc = li.__doc__ if li.__doc__ else "--"
353 doc = doc.lstrip().split('\n', 1)[0]
354 s.append("%-22s: %s" % (li.__name__, doc))
355 return "\n".join(s)
356
357 def register(self, cmd):
358 # type: (DecoratorCallable) -> DecoratorCallable

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected