def get_cpu_vendor_name():
 vendors_map = {'intel': ('GenuineIntel',), 'amd': ('AMD',), 'power7': ('POWER7',)}
 cpu_info = get_cpu_info()
 for (vendor, identifiers) in vendors_map.items():
  for identifier in identifiers:
   if list_grep(cpu_info, identifier):
    return vendor
 return None

def get_cpu_vendor_name ( ) : vendors_map = { 'intel' : ( 'GenuineIntel' , ) , 'amd' : ( 'AMD' , ) , 'power7' : ( 'POWER7' , ) } cpu_info = get_cpu_info ( ) for ( vendor , identifiers ) in vendors_map . items ( ) : for identifier in identifiers : if list_grep ( cpu_info , identifier ) : return vendor return None
get the current cpu vendor name :returns: string intel or amd or power7 depending on the current cpu architecture .