def hostname():
 if sabnzbd.WIN32:
  return os.environ.get('computername', 'unknown')
 try:
  return os.uname()[1]
 except:
  return 'unknown'

def hostname ( ) : if sabnzbd . WIN32 : return os . environ . get ( 'computername' , 'unknown' ) try : return os . uname ( ) [ 1 ] except : return 'unknown'
require the hostname to have a specific value .