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

Method test

pager_lib/getmac/getmac.py:639–643  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

637 network_request = True
638
639 def test(self): # type: () -> bool
640 try:
641 return ctypes.windll.wsock32.inet_addr(b"127.0.0.1") > 0 # noqa: T484
642 except Exception:
643 return False
644
645 def get(self, arg): # type: (str) -> Optional[str]
646 if not PY2: # Convert to bytes on Python 3+ (Fixes GitHub issue #7)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected