def _syscmd_uname(option, default=''):
 if (sys.platform in ('dos', 'win32', 'win16')):
  return default
 try:
  f = os.popen(('uname %s 2> %s' % (option, DEV_NULL)))
 except (AttributeError, OSError):
  return default
 output = f.read().strip()
 rc = f.close()
 if ((not output) or rc):
  return default
 else:
  return output

def _syscmd_uname ( option , default = '' ) : if ( sys . platform in ( 'dos' , 'win32' , 'win16' ) ) : return default try : f = os . popen ( ( 'uname %s 2> %s' % ( option , DEV_NULL ) ) ) except ( AttributeError , OSError ) : return default output = f . read ( ) . strip ( ) rc = f . close ( ) if ( ( not output ) or rc ) : return default else : return output
interface to the systems uname command .