src/questions.py: Don't use the 'is' operator to compare strings.

This commit is contained in:
Valentin Lorentz 2012-08-04 15:05:04 +02:00
parent b338c54592
commit 7d73a7dc0a

View File

@ -115,7 +115,7 @@ def yn(prompt, default=None):
else:
default = 'n'
s = expect(prompt, ['y', 'n'], default=default)
if s is 'y':
if s == 'y':
return True
else:
return False