Commit 21fda769 by Tobias Langer

Fixed errornous string compare.

parent d27fb4f7
......@@ -27,9 +27,9 @@ def query_yes_no(question, default=None):
if default is None:
prompt = ' [y/n]'
elif default.lower() is 'yes':
elif default.lower() == 'yes':
prompt = ' [Y/n]'
elif default.lower() is 'no':
elif default.lower() == 'no':
prompt = ' [y/N]'
else:
raise ValueError('Invalid default answer {}'.format(default))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment