mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
src/questions.py: Don't use the 'is' operator to compare strings.
This commit is contained in:
parent
b338c54592
commit
7d73a7dc0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user