MCPcopy Index your code
hub / github.com/RustPython/RustPython / _node

Function _node

Lib/platform.py:688–701  ·  view source on GitHub ↗

Helper to determine the node name of this machine.

(default='')

Source from the content-addressed store, hash-verified

686 return platform
687
688def _node(default=''):
689
690 """ Helper to determine the node name of this machine.
691 """
692 try:
693 import socket
694 except ImportError:
695 # No sockets...
696 return default
697 try:
698 return socket.gethostname()
699 except OSError:
700 # Still not working...
701 return default
702
703def _follow_symlinks(filepath):
704

Callers 1

unameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected