def _parse_hostname():
 contents = _read_file(_DEB_HOSTNAME_FILE)
 if contents:
  return contents[0].split('\n')[0]
 else:
  return ''

def _parse_hostname ( ) : contents = _read_file ( _DEB_HOSTNAME_FILE ) if contents : return contents [ 0 ] . split ( '\n' ) [ 0 ] else : return ''
parse /etc/hostname and return hostname .