mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +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:
|
else:
|
||||||
default = 'n'
|
default = 'n'
|
||||||
s = expect(prompt, ['y', 'n'], default=default)
|
s = expect(prompt, ['y', 'n'], default=default)
|
||||||
if s is 'y':
|
if s == 'y':
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user