MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get

Method get

pager_lib/getmac/getmac.py:437–439  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

435 return check_command("arp")
436
437 def get(self, arg): # type: (str) -> Optional[str]
438 regex = r"\(" + re.escape(arg) + r"\)\s+at\s+" + MAC_RE_COLON
439 return _search(regex, _popen("arp", arg))
440
441
442class ArpOpenbsd(Method):

Callers

nothing calls this directly

Calls 3

_searchFunction · 0.85
_popenFunction · 0.85
escapeMethod · 0.80

Tested by

no test coverage detected