def get_flag(var, fallback, expected=True, warn=True):
 val = get_config_var(var)
 if (val is None):
  if warn:
   logger.debug("Config variable '%s' is unset, Python ABI tag may be incorrect", var)
  return fallback()
 return (val == expected)

def get_flag ( var , fallback , expected = True , warn = True ) : val = get_config_var ( var ) if ( val is None ) : if warn : logger . debug ( "Config variable '%s' is unset, Python ABI tag may be incorrect" , var ) return fallback ( ) return ( val == expected )
use a fallback method for determining soabi flags if the needed config var is unset or unavailable .