def _summary_judment(rec):
 if config['import']['quiet']:
  if (rec == Recommendation.strong):
   return importer.action.APPLY
  else:
   action = config['import']['quiet_fallback'].as_choice({'skip': importer.action.SKIP, 'asis': importer.action.ASIS})
 elif (rec == Recommendation.none):
  action = config['import']['none_rec_action'].as_choice({'skip': importer.action.SKIP, 'asis': importer.action.ASIS, 'ask': None})
 else:
  return None
 if (action == importer.action.SKIP):
  print_('Skipping.')
 elif (action == importer.action.ASIS):
  print_('Importing as-is.')
 return action

def _summary_judment ( rec ) : if config [ 'import' ] [ 'quiet' ] : if ( rec == Recommendation . strong ) : return importer . action . APPLY else : action = config [ 'import' ] [ 'quiet_fallback' ] . as_choice ( { 'skip' : importer . action . SKIP , 'asis' : importer . action . ASIS } ) elif ( rec == Recommendation . none ) : action = config [ 'import' ] [ 'none_rec_action' ] . as_choice ( { 'skip' : importer . action . SKIP , 'asis' : importer . action . ASIS , 'ask' : None } ) else : return None if ( action == importer . action . SKIP ) : print_ ( 'Skipping.' ) elif ( action == importer . action . ASIS ) : print_ ( 'Importing as-is.' ) return action
determines whether a decision should be made without even asking the user .