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

Method get

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

Source from the content-addressed store, hash-verified

730 return False
731
732 def get(self, arg): # type: (str) -> Optional[str]
733 from uuid import _find_mac # type: ignore
734
735 if not PY2:
736 arg = bytes(arg, "utf-8") # type: ignore
737
738 mac = _find_mac("lanscan", "-ai", [arg], lambda i: 0)
739
740 if mac:
741 return _uuid_convert(mac)
742
743 return None
744
745
746class FcntlIface(Method):

Callers

nothing calls this directly

Calls 1

_uuid_convertFunction · 0.85

Tested by

no test coverage detected