def list_hardware():
 with open(os.devnull, 'w') as devnull:
  return check_output(['lshw', '-quiet', '-json'], stderr=devnull)

def list_hardware ( ) : with open ( os . devnull , 'w' ) as devnull : return check_output ( [ 'lshw' , '-quiet' , '-json' ] , stderr = devnull )
list the hardware on the local machine .