def _node(default=''):
    try:
        import socket
    except ImportError:
        # No sockets...
        return default
    try:
        return socket.gethostname()
    except socket.error:
        # Still not working...
        return default

# os.path.abspath is new in Python 1.5.2:
Helper to determine the node name of this machine.
dataset/ETHPy150Open babble/babble/include/jython/Lib/platform.py/_node