def _convert_to_standard_attr(attr):
 ret_attr = ATTR_MAP.get(attr, None)
 if (ret_attr is None):
  return attr.lower()
 return ret_attr

def _convert_to_standard_attr ( attr ) : ret_attr = ATTR_MAP . get ( attr , None ) if ( ret_attr is None ) : return attr . lower ( ) return ret_attr
helper function for _process_info_installed_output() converts an opkg attribute name to a standard attribute name which is used across pkg modules .