candle.modac_utils.query_yes_no

Contents

candle.modac_utils.query_yes_no#

candle.modac_utils.query_yes_no(question, default='yes')#

Ask a yes/no question via raw_input() and return their answer.

Parameters:
  • question (string) – string that is presented to the user.

  • default (boolean) – The presumed boolean answer if the user just hits <Enter>.

Returns:

True for “yes” or False for “no”.

Return type:

boolean